Class JerseyExtensionsInstalledByEvent
- 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
-
- ru.vyarus.dropwizard.guice.module.lifecycle.event.jersey.JerseyExtensionsInstalledByEvent
-
public class JerseyExtensionsInstalledByEvent extends JerseyPhaseEvent
Called whenJerseyInstaller
installer installed all related extensions and only for installers actually performed installations (extensions list never empty). Provides installer and installed extensions types.At this point hk is not completely started and so hk managed extensions (
JerseyManaged
) couldn't be obtained yet (even though you have access to root service locator). But extensions managed by guice could be obtained from guice context.Installer passed by type to simplify differentiation. If, for some reason, you need to access installer instance then save installers in
InstallersResolvedEvent
and find by type (only one installer of exact type could be registered).- 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 JerseyExtensionsInstalledByEvent(EventsContext context, java.lang.Class<? extends FeatureInstaller> installer, java.util.List<java.lang.Class<?>> installed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Class<?>>
getInstalled()
java.lang.Class<? extends FeatureInstaller>
getInstaller()
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.JerseyPhaseEvent
getInjectionManager
-
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
-
JerseyExtensionsInstalledByEvent
public JerseyExtensionsInstalledByEvent(EventsContext context, java.lang.Class<? extends FeatureInstaller> installer, java.util.List<java.lang.Class<?>> installed)
-
-
Method Detail
-
getInstaller
public java.lang.Class<? extends FeatureInstaller> getInstaller()
- Returns:
- installer type
-
getInstalled
public java.util.List<java.lang.Class<?>> getInstalled()
- Returns:
- installed extensions type
-
-