public class EmbeddedServletContainerInitializedEvent
extends org.springframework.context.ApplicationEvent
EmbeddedServletContainer is ready. Useful for obtaining the local port of a
running server. Normally it will have been started, but listeners are free to inspect
the server and stop and start it if they want to.source| Constructor and Description |
|---|
EmbeddedServletContainerInitializedEvent(EmbeddedWebApplicationContext applicationContext,
EmbeddedServletContainer source) |
| Modifier and Type | Method and Description |
|---|---|
EmbeddedWebApplicationContext |
getApplicationContext()
Access the application context that the container was created in.
|
EmbeddedServletContainer |
getEmbeddedServletContainer()
Access the
EmbeddedServletContainer. |
EmbeddedServletContainer |
getSource()
Access the source of the event (an
EmbeddedServletContainer). |
toStringpublic EmbeddedServletContainerInitializedEvent(EmbeddedWebApplicationContext applicationContext, EmbeddedServletContainer source)
public EmbeddedServletContainer getEmbeddedServletContainer()
EmbeddedServletContainer.public EmbeddedServletContainer getSource()
EmbeddedServletContainer).getSource in class EventObjectpublic EmbeddedWebApplicationContext getApplicationContext()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.