Class 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 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 context
      bundles - actual bundles
      disabled - disabled bundles
      ignored - ignored bundles (duplicates)
  • Method Details

    • getBundles

      public List<io.dropwizard.core.ConfiguredBundle> getBundles()
      Note that transitive bundles would be also included (if bundles tracking not disabled GuiceyOptions.TrackDropwizardBundles).
      Returns:
      initialized dropwizard bundles (excluding disabled)
    • getDisabled

      public List<io.dropwizard.core.ConfiguredBundle> getDisabled()
      Returns:
      disabled dropwizard bundles or empty list
    • getIgnored

      public List<io.dropwizard.core.ConfiguredBundle> getIgnored()
      Returns:
      ignored dropwizard bundles (duplicates) or empty list