Class BundlesInitializedEvent
- 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.BundlesInitializedEvent
-
public class BundlesInitializedEvent extends ConfigurationPhaseEvent
Called after bundles initialization. Note that bundles could register other bundles and so resulted list of installed bundles could be bigger (than in resolution event). Provides a list of all used and list of disabled bundles. Not called if no bundles were used at all (nothing was processed - no event).Note that bundles will be processed further under dropwizard run phase so at this point bundles state could be modified to affect execution.
- Since:
- 13.06.2019
-
-
Constructor Summary
Constructors Constructor Description BundlesInitializedEvent(EventsContext context, java.util.List<GuiceyBundle> bundles, java.util.List<GuiceyBundle> disabled, java.util.List<GuiceyBundle> ignored)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GuiceyBundle>
getBundles()
java.util.List<GuiceyBundle>
getDisabled()
java.util.List<GuiceyBundle>
getIgnored()
-
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
-
BundlesInitializedEvent
public BundlesInitializedEvent(EventsContext context, java.util.List<GuiceyBundle> bundles, java.util.List<GuiceyBundle> disabled, java.util.List<GuiceyBundle> ignored)
-
-
Method Detail
-
getBundles
public java.util.List<GuiceyBundle> getBundles()
- Returns:
- list of all used bundles (actually processed bundles, including transitives) or empty list if bundles were not used at all
-
getDisabled
public java.util.List<GuiceyBundle> getDisabled()
- Returns:
- list of all disabled bundles or empty list
-
getIgnored
public java.util.List<GuiceyBundle> getIgnored()
- Returns:
- list of ignored bundles (duplicates) or empty list
-
-