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
-
public class InstallersResolvedEvent extends ConfigurationPhaseEvent
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
Constructors Constructor Description InstallersResolvedEvent(EventsContext context, java.util.List<FeatureInstaller> installers, java.util.List<java.lang.Class<? extends FeatureInstaller>> disabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Class<? extends FeatureInstaller>>
getDisabled()
Disabled installers are never instantiated and so instances are not available.java.util.List<FeatureInstaller>
getInstallers()
-
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
-
InstallersResolvedEvent
public InstallersResolvedEvent(EventsContext context, java.util.List<FeatureInstaller> installers, java.util.List<java.lang.Class<? extends FeatureInstaller>> disabled)
-
-
Method Detail
-
getInstallers
public java.util.List<FeatureInstaller> getInstallers()
- Returns:
- list of all enabled installers or empty list if no installers registered or all of them were disabled
-
getDisabled
public java.util.List<java.lang.Class<? extends FeatureInstaller>> getDisabled()
Disabled installers are never instantiated and so instances are not available.- Returns:
- list of disabled installer types
-
-