public class EmbeddedServletContainerInitializedEvent extends 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 ). |
getTimestamp
toString
public EmbeddedServletContainerInitializedEvent(EmbeddedWebApplicationContext applicationContext, EmbeddedServletContainer source)
public EmbeddedServletContainer getEmbeddedServletContainer()
EmbeddedServletContainer
.public EmbeddedServletContainer getSource()
EmbeddedServletContainer
).getSource
in class EventObject
public EmbeddedWebApplicationContext getApplicationContext()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.