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
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
ConstructorsConstructorDescriptionBundlesInitializedEvent(EventsContext context, List<GuiceyBundle> bundles, List<GuiceyBundle> disabled, List<GuiceyBundle> ignored) Create event. -
Method Summary
Modifier and TypeMethodDescriptionMethods 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
-
BundlesInitializedEvent
public BundlesInitializedEvent(EventsContext context, List<GuiceyBundle> bundles, List<GuiceyBundle> disabled, List<GuiceyBundle> ignored) Create event.- Parameters:
context- event contextbundles- actual bundlesdisabled- disabled bundlesignored- ignored bundles (duplicate registrations)
-
-
Method Details
-
getBundles
- Returns:
- list of all used bundles (actually processed bundles, including transitives) or empty list if bundles were not used at all
-
getDisabled
- Returns:
- list of all disabled bundles or empty list
-
getIgnored
- Returns:
- list of ignored bundles (duplicates) or empty list
-