Expose webServer from ReactiveWebServerApplicationContext
Closes gh-9746
This commit is contained in:
parent
96cb948461
commit
b7c37c2807
|
|
@ -89,6 +89,15 @@ public class ReactiveWebServerApplicationContext
|
||||||
initPropertySources();
|
initPropertySources();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the {@link WebServer} that was created by the context or {@code null} if
|
||||||
|
* the server has not yet been created.
|
||||||
|
* @return the web server
|
||||||
|
*/
|
||||||
|
public WebServer getWebServer() {
|
||||||
|
return this.webServer;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the {@link ReactiveWebServerFactory} that should be used to create the
|
* Return the {@link ReactiveWebServerFactory} that should be used to create the
|
||||||
* reactive web server. By default this method searches for a suitable bean in the
|
* reactive web server. By default this method searches for a suitable bean in the
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue