Class InstallersResolvedEvent
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.configuration.InstallersResolvedEvent
Called after all installers resolved (including installers found with classpath scan) and prepared for
processing extensions. Provides list of all enabled installers. Called even if no installers are used.
May be used to post-process installers (e.g. add some conventional configuration by some marker interface).
- Since:
- 19.04.2018
-
Constructor Summary
ConstructorsConstructorDescriptionInstallersResolvedEvent(EventsContext context, List<FeatureInstaller> installers, List<Class<? extends FeatureInstaller>> disabled) Create event. -
Method Summary
Modifier and TypeMethodDescriptionList<Class<? extends FeatureInstaller>>Disabled installers are never instantiated and so instances are not available.Methods 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
-
InstallersResolvedEvent
public InstallersResolvedEvent(EventsContext context, List<FeatureInstaller> installers, List<Class<? extends FeatureInstaller>> disabled) Create event.- Parameters:
context- event contextinstallers- installersdisabled- disabled installers
-
-
Method Details
-
getInstallers
- Returns:
- list of all enabled installers or empty list if no installers registered or all of them were disabled
-
getDisabled
Disabled installers are never instantiated and so instances are not available.- Returns:
- list of disabled installer types
-