Class ApplicationShutdownEvent


  • public class ApplicationShutdownEvent
    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
    • Constructor Detail

      • ApplicationShutdownEvent

        public ApplicationShutdownEvent​(EventsContext context)
        Create event.
        Parameters:
        context - event 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