Class ApplicationShotdownEvent
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.ConfigurationPhaseEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.RunPhaseEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.InjectorPhaseEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.JerseyPhaseEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.jersey.ApplicationShotdownEvent
-
public class ApplicationShotdownEvent extends JerseyPhaseEvent
Called on application shutdown start. Triggered by jetty lifecycle stopping event (LifeCycle.Listener.lifeCycleStopping( org.eclipse.jetty.util.component.LifeCycle)
).May be used to perform some shutdown logic.
- Since:
- 25.10.2019
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.InjectorPhaseEvent
InjectorPhaseEvent.ReportRenderer
-
-
Constructor Summary
Constructors Constructor Description ApplicationShotdownEvent(EventsContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isJettyStarted()
As event fired for both real server startup and guicey lightweight tests, this property allows differentiating situations.-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.JerseyPhaseEvent
getInjectionManager
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.InjectorPhaseEvent
getConfigurationInfo, getInjector, getReportRenderer
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.RunPhaseEvent
getConfiguration, getConfigurationTree, getEnvironment, renderConfigurationBindings
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.ConfigurationPhaseEvent
getBootstrap
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
getOptions, getSharedState, getType
-
-
-
-
Constructor Detail
-
ApplicationShotdownEvent
public ApplicationShotdownEvent(EventsContext context)
-
-
Method Detail
-
isJettyStarted
public boolean isJettyStarted()
As event fired for both real server startup and guicey lightweight tests, this property allows differentiating situations.- Returns:
- true if jetty was started and false in case of guicey lightweight tests
- See Also:
TestGuiceyApp
-
-