Interface BootstrapAwareModule<T extends io.dropwizard.Configuration>

  • Type Parameters:
    T - configuration type
    All Known Implementing Classes:
    DropwizardAwareModule, GuiceBootstrapModule, UniqueDropwizardAwareModule

    public interface BootstrapAwareModule<T extends io.dropwizard.Configuration>
    Guice module, registered in bundle, may implement this to be able to use bootstrap object in module configuration method.

    NOTE: setter will be called on run phase, so bootstrap object may be used only for reference (too late for changes).

    Since:
    31.08.2014
    See Also:
    DropwizardAwareModule
    • Method Detail

      • setBootstrap

        void setBootstrap​(io.dropwizard.setup.Bootstrap<T> bootstrap)
        Method will be called just before injector initialization.
        Parameters:
        bootstrap - bootstrap object