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 voidinitialize(Bootstrap<?> bootstrap) Initializes the application bootstrap.default voidrun(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
-