Introduce EmbeddedWebServerInitializedEvent
This commit adds `EmbeddedWebServerInitializedEvent`, which holds the `EmbeddedWebServer` information when the application context starts. The `EmbeddedServletContainerInitializedEvent` now inherits from that type and holds additional information, the `EmbeddedWebApplicationContext`. Closes gh-8208
This commit is contained in:
@@ -896,7 +896,7 @@ public class EndpointWebMvcAutoConfigurationTests {
|
||||
@Override
|
||||
public void onApplicationEvent(EmbeddedServletContainerInitializedEvent event) {
|
||||
if (event.getApplicationContext() != this.rootContext) {
|
||||
this.servletContainer = event.getEmbeddedServletContainer();
|
||||
this.servletContainer = event.getEmbeddedWebServer();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user