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
-
public class DropwizardBundlesInitializedEvent extends ConfigurationPhaseEvent
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
Constructors Constructor Description DropwizardBundlesInitializedEvent(EventsContext context, java.util.List<io.dropwizard.core.ConfiguredBundle> bundles, java.util.List<io.dropwizard.core.ConfiguredBundle> disabled, java.util.List<io.dropwizard.core.ConfiguredBundle> ignored)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<io.dropwizard.core.ConfiguredBundle>
getBundles()
Note that transitive bundles would be also included (if bundles tracking not disabledGuiceyOptions.TrackDropwizardBundles
).java.util.List<io.dropwizard.core.ConfiguredBundle>
getDisabled()
java.util.List<io.dropwizard.core.ConfiguredBundle>
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
-
DropwizardBundlesInitializedEvent
public DropwizardBundlesInitializedEvent(EventsContext context, java.util.List<io.dropwizard.core.ConfiguredBundle> bundles, java.util.List<io.dropwizard.core.ConfiguredBundle> disabled, java.util.List<io.dropwizard.core.ConfiguredBundle> ignored)
-
-
Method Detail
-
getBundles
public java.util.List<io.dropwizard.core.ConfiguredBundle> getBundles()
Note that transitive bundles would be also included (if bundles tracking not disabledGuiceyOptions.TrackDropwizardBundles
).- Returns:
- initialized dropwizard bundles (excluding disabled)
-
getDisabled
public java.util.List<io.dropwizard.core.ConfiguredBundle> getDisabled()
- Returns:
- disabled dropwizard bundles or empty list
-
getIgnored
public java.util.List<io.dropwizard.core.ConfiguredBundle> getIgnored()
- Returns:
- ignored dropwizard bundles (duplicates) or empty list
-
-