Class ExtensionsInstalledByEvent
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.run.ExtensionsInstalledByEvent
Called when installer installed all related extensions and only for installers actually performed
installations (extensions list never empty). Provides installer and installed extensions types.
NOTE: JerseyInstaller installers will no be
notified here, even if they participate in installation as installation is considered incomplete at that point.
Extension instance could be obtained manually from injector.
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
ConstructorsConstructorDescriptionExtensionsInstalledByEvent(EventsContext context, Class<? extends FeatureInstaller> installer, List<Class<?>> installed) Create event. -
Method Summary
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.InjectorPhaseEvent
getConfigurationInfo, getInjector, getReportRendererMethods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.RunPhaseEvent
getConfiguration, getConfigurationTree, getEnvironment, renderConfigurationBindingsMethods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.ConfigurationPhaseEvent
getBootstrapMethods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
getOptions, getSharedState, getStats, getType
-
Constructor Details
-
ExtensionsInstalledByEvent
public ExtensionsInstalledByEvent(EventsContext context, Class<? extends FeatureInstaller> installer, List<Class<?>> installed) Create event.- Parameters:
context- event contextinstaller- installer typeinstalled- installed extensions
-
-
Method Details
-
getInstaller
- Returns:
- installer type
-
getInstalled
- Returns:
- installed extension types
-