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 Detail

      • DropwizardBundlesInitializedEvent

        public DropwizardBundlesInitializedEvent​(EventsContext context,
                                                 java.util.List<io.dropwizard.ConfiguredBundle> bundles,
                                                 java.util.List<io.dropwizard.ConfiguredBundle> disabled,
                                                 java.util.List<io.dropwizard.ConfiguredBundle> ignored)
    • Method Detail

      • getBundles

        public java.util.List<io.dropwizard.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 java.util.List<io.dropwizard.ConfiguredBundle> getDisabled()
        Returns:
        disabled dropwizard bundles or empty list
      • getIgnored

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