Class GuiceyLifecycleEvent
java.lang.Object
ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
- Direct Known Subclasses:
ConfigurationHooksProcessedEvent,ConfigurationPhaseEvent
Base class for guicey lifecycle events. All events are organized in hierarchy by:
GuiceyLifecycleEvent- lowest level, provides access to options (ideally there should be bootstrap object, which is known for all events, but first eventConfigurationHooksProcessedEvent) simply don't have access for it.ConfigurationPhaseEvent- dropwizard configuration phase events (all have access to dropwizardBootstrapobject)RunPhaseEvent- events started on dropwizard run phase (when configuration is available)InjectorPhaseEvent- all events after guice injector creationJerseyPhaseEvent- all events after jersey context initialization start (sinceInjectionManagerbecome available)
- Since:
- 19.04.2018
-
Constructor Summary
ConstructorsConstructorDescriptionGuiceyLifecycleEvent(GuiceyLifecycle type, EventsContext context) Create event. -
Method Summary
-
Constructor Details
-
GuiceyLifecycleEvent
Create event.- Parameters:
type- event typecontext- event context
-
-
Method Details
-
getType
Useful to differentiate events (with switch).- Returns:
- type of event
-
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
- Returns:
- tracked stats
-