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
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
initialize(Bootstrap<?> bootstrap)
Initializes the application bootstrap.default void
run(T configuration, Environment environment)
Initializes the environment.
-
-
-
Method Detail
-
run
default void run(T configuration, Environment environment) throws Exception
Initializes the environment.- Parameters:
configuration
- the configuration objectenvironment
- the application'sEnvironment
- Throws:
Exception
- if something goes wrong
-
initialize
default void initialize(Bootstrap<?> bootstrap)
Initializes the application bootstrap.- Parameters:
bootstrap
- the application bootstrap
-
-