Class ApplicationStartingEvent


public class ApplicationStartingEvent extends JerseyPhaseEvent
Called after complete application configuration (Application.run(io.dropwizard.core.Configuration, io.dropwizard.core.setup.Environment) called), but before lifecycle startup (before managed objects run). Actually the same as jetty lifecycle started event (LifeCycle.Listener.lifeCycleStarting(org.eclipse.jetty.util.component.LifeCycle).

May be used as for additional services startup (after all initializations), executed before "started" point, often used for reporting. As an example, sub rest use this event to run jersey context after initialization. This event also will be fired in guicey tests (TestGuiceyApp which does not start the web part).

Since:
16.10.2025
  • Constructor Details

    • ApplicationStartingEvent

      public ApplicationStartingEvent(EventsContext context)
      Create event.
      Parameters:
      context - even context