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 Type
    Method
    Description
    default void
    initialize(Bootstrap<?> bootstrap)
    Initializes the application bootstrap.
    default void
    run(T configuration, Environment environment)
    Initializes the environment.
  • Method Details

    • run

      default void run(T configuration, Environment environment) throws Exception
      Initializes the environment.
      Parameters:
      configuration - the configuration object
      environment - the application's Environment
      Throws:
      Exception - if something goes wrong
    • initialize

      default void initialize(Bootstrap<?> bootstrap)
      Initializes the application bootstrap.
      Parameters:
      bootstrap - the application bootstrap