Package io.dropwizard.core
Interface ConfiguredBundle<T>
- Type Parameters:
T
- the required configuration interface
- All Known Implementing Classes:
SslReloadBundle
public interface ConfiguredBundle<T>
A reusable bundle of functionality, used to define blocks of application behavior that are
conditional on configuration parameters.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
initialize
(Bootstrap<?> bootstrap) Initializes the application bootstrap.default void
run
(T configuration, Environment environment) Initializes the environment.
-
Method Details
-
run
Initializes the environment.- Parameters:
configuration
- the configuration objectenvironment
- the application'sEnvironment
- Throws:
Exception
- if something goes wrong
-
initialize
Initializes the application bootstrap.- Parameters:
bootstrap
- the application bootstrap
-