Class JerseyPhaseEvent
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.ConfigurationPhaseEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.RunPhaseEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.InjectorPhaseEvent
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.JerseyPhaseEvent
-
- Direct Known Subclasses:
ApplicationShotdownEvent
,ApplicationStartedEvent
,ApplicationStoppedEvent
,JerseyConfigurationEvent
,JerseyExtensionsInstalledByEvent
,JerseyExtensionsInstalledEvent
public abstract class JerseyPhaseEvent extends InjectorPhaseEvent
Base class for events, started after jersey context initialization start. Appears after jetty start, during jersey initialization.- Since:
- 19.04.2018
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.InjectorPhaseEvent
InjectorPhaseEvent.ReportRenderer
-
-
Constructor Summary
Constructors Constructor Description JerseyPhaseEvent(GuiceyLifecycle type, EventsContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.jersey.internal.inject.InjectionManager
getInjectionManager()
Note: all guicey events are happen before jersey application initialization finish and so manager can't be used for extensions access, but it could be stored somewhere and used later (with help of jersey lifecycle listener).-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.InjectorPhaseEvent
getConfigurationInfo, getInjector, getReportRenderer
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.RunPhaseEvent
getConfiguration, getConfigurationTree, getEnvironment, renderConfigurationBindings
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.ConfigurationPhaseEvent
getBootstrap
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
getOptions, getSharedState, getType
-
-
-
-
Constructor Detail
-
JerseyPhaseEvent
public JerseyPhaseEvent(GuiceyLifecycle type, EventsContext context)
-
-
Method Detail
-
getInjectionManager
public org.glassfish.jersey.internal.inject.InjectionManager getInjectionManager()
Note: all guicey events are happen before jersey application initialization finish and so manager can't be used for extensions access, but it could be stored somewhere and used later (with help of jersey lifecycle listener).Note: HK2
ServiceLocator
could be obtained as bean from manager asgetInjectionManager().getInstance(ServiceLocator.class)
.- Returns:
- root service locator
-
-