Class DropwizardBundleTracker<T extends io.dropwizard.core.Configuration>

java.lang.Object
ru.vyarus.dropwizard.guice.module.context.bootstrap.DropwizardBundleTracker<T>
Type Parameters:
T - configuration type
All Implemented Interfaces:
io.dropwizard.core.ConfiguredBundle<T>

public class DropwizardBundleTracker<T extends io.dropwizard.core.Configuration> extends Object implements io.dropwizard.core.ConfiguredBundle<T>
Bundle decorator. Used to track transitive dropwizard bundles registration.

Bundles tracking is controlled with GuiceyOptions.TrackDropwizardBundles option.

Since:
07.05.2019
  • Constructor Details

    • DropwizardBundleTracker

      public DropwizardBundleTracker(io.dropwizard.core.ConfiguredBundle<? super T> bundle, ConfigurationContext context)
      Create tracker.
      Parameters:
      bundle - dropwizard bundle
      context - configuration context
  • Method Details

    • initialize

      public void initialize(io.dropwizard.core.setup.Bootstrap bootstrap)
      Specified by:
      initialize in interface io.dropwizard.core.ConfiguredBundle<T extends io.dropwizard.core.Configuration>
    • run

      public void run(T configuration, io.dropwizard.core.setup.Environment environment) throws Exception
      Specified by:
      run in interface io.dropwizard.core.ConfiguredBundle<T extends io.dropwizard.core.Configuration>
      Throws:
      Exception