Class DropwizardBundlesInitializedEvent
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.DropwizardBundlesInitializedEvent
Called after dropwizard bundles initialization (for dropwizard bundles registered through guicey api).
Not called if no bundles were registered.
Note that bundles will be processed further under dropwizard run phase so at this point bundles state could be modified to affect execution.
- Since:
- 12.08.2019
-
Constructor Summary
ConstructorsConstructorDescriptionDropwizardBundlesInitializedEvent(EventsContext context, List<io.dropwizard.core.ConfiguredBundle> bundles, List<io.dropwizard.core.ConfiguredBundle> disabled, List<io.dropwizard.core.ConfiguredBundle> ignored) Create event. -
Method Summary
Modifier and TypeMethodDescriptionList<io.dropwizard.core.ConfiguredBundle>Note that transitive bundles would be also included (if bundles tracking not disabledGuiceyOptions.TrackDropwizardBundles).List<io.dropwizard.core.ConfiguredBundle>List<io.dropwizard.core.ConfiguredBundle>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
-
DropwizardBundlesInitializedEvent
public DropwizardBundlesInitializedEvent(EventsContext context, List<io.dropwizard.core.ConfiguredBundle> bundles, List<io.dropwizard.core.ConfiguredBundle> disabled, List<io.dropwizard.core.ConfiguredBundle> ignored) Create event.- Parameters:
context- event contextbundles- actual bundlesdisabled- disabled bundlesignored- ignored bundles (duplicates)
-
-
Method Details
-
getBundles
Note that transitive bundles would be also included (if bundles tracking not disabledGuiceyOptions.TrackDropwizardBundles).- Returns:
- initialized dropwizard bundles (excluding disabled)
-
getDisabled
- Returns:
- disabled dropwizard bundles or empty list
-
getIgnored
- Returns:
- ignored dropwizard bundles (duplicates) or empty list
-