Expose webServer from ReactiveWebServerApplicationContext

Closes gh-9746
This commit is contained in:
Madhura Bhave 2017-10-10 14:39:06 -07:00
parent 96cb948461
commit b7c37c2807

View File

@ -89,6 +89,15 @@ public class ReactiveWebServerApplicationContext
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
* reactive web server. By default this method searches for a suitable bean in the