public class BundlesInitializedEvent extends ConfigurationPhaseEvent
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 Details

    • BundlesInitializedEvent

      public BundlesInitializedEvent(EventsContext context, List<GuiceyBundle> bundles, List<GuiceyBundle> disabled, List<GuiceyBundle> ignored)
      Create event.
      Parameters:
      context - event context
      bundles - actual bundles
      disabled - disabled bundles
      ignored - ignored bundles (duplicate registrations)
  • Method Details

    • getBundles

      public List<GuiceyBundle> getBundles()
      Returns:
      list of all used bundles (actually processed bundles, including transitives) or empty list if bundles were not used at all
    • getDisabled

      public List<GuiceyBundle> getDisabled()
      Returns:
      list of all disabled bundles or empty list
    • getIgnored

      public List<GuiceyBundle> getIgnored()
      Returns:
      list of ignored bundles (duplicates) or empty list