public class ApplicationStartedEvent extends JerseyPhaseEvent
AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleStarted(
org.eclipse.jetty.util.component.LifeCycle)), which is called after complete jetty startup.
May be used as assured "started" point (after all initializations). For example, to report something. This event
also will be casted in guicey tests (GuiceyAppRule) when web part is not
started.
InjectorPhaseEvent.ReportRenderer| Constructor and Description |
|---|
ApplicationStartedEvent(EventsContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isJettyStarted()
As event fired for both real server startup and guicey lightweight tests, this property allows
to differentiate situations.
|
java.lang.String |
renderJerseyConfig(JerseyConfig config)
Render jersey configuration report.
|
getInjectionManagergetConfigurationInfo, getInjector, getReportRenderergetConfiguration, getConfigurationTree, getEnvironment, renderConfigurationBindingsgetBootstrapgetOptions, getSharedState, getTypepublic ApplicationStartedEvent(EventsContext context)
public boolean isJettyStarted()
UseGuiceyApp,
GuiceyAppRulepublic java.lang.String renderJerseyConfig(JerseyConfig config)
It is impossible to render this report under lightweight guicey tests (because jersey context is obviously not started).
config - config object