Class ApplicationShotdownEvent


  • public class ApplicationShotdownEvent
    extends JerseyPhaseEvent
    Called on application shutdown start. Triggered by jetty lifecycle stopping event ( AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleStopping( org.eclipse.jetty.util.component.LifeCycle)).

    May be used to perform some shutdown logic.

    Since:
    25.10.2019
    • 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 to differentiate situations.
        Returns:
        true if jetty was started and false in case of guicey lightweight tests
        See Also:
        UseGuiceyApp, GuiceyAppRule