Class GuiceyLifecycleEvent

java.lang.Object
ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
Direct Known Subclasses:
ConfigurationHooksProcessedEvent, ConfigurationPhaseEvent

public abstract class GuiceyLifecycleEvent extends Object
Base class for guicey lifecycle events. All events are organized in hierarchy by:
Since:
19.04.2018
  • Constructor Details

    • GuiceyLifecycleEvent

      public GuiceyLifecycleEvent(GuiceyLifecycle type, EventsContext context)
      Create event.
      Parameters:
      type - event type
      context - event context
  • Method Details

    • getType

      public GuiceyLifecycle getType()
      Useful to differentiate events (with switch).
      Returns:
      type of event
    • getOptions

      public Options getOptions()
      NOTE: options could only be specified in application class (in bundle definition) and so for all events options will be the same (already defined).
      Returns:
      defined options
    • getStats

      public StatsInfo getStats()
      Returns:
      tracked stats
    • getSharedState

      public SharedConfigurationState getSharedState()
      Returns:
      application shared state
      See Also: