public abstract class GuiceyLifecycleEvent
extends java.lang.Object
GuiceyLifecycleEvent - lowest level, provides access to options (ideally there should be
bootstrap object, which is known for all events, but first event
ConfigurationHooksProcessedEvent) simply
don't have access for it.
ConfigurationPhaseEvent - dropwizard configuration phase events (all have access to dropwizard
Bootstrap object)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 (since
InjectionManager become available)| Constructor and Description |
|---|
GuiceyLifecycleEvent(GuiceyLifecycle type,
Options options) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
GuiceyLifecycle |
getType()
Useful to differentiate events (with switch).
|
public GuiceyLifecycleEvent(GuiceyLifecycle type, Options options)
public GuiceyLifecycle getType()
public Options getOptions()