public interface ModuleConfiguration
Modules have callback methods for the initialization, start and shutdown phases of the application's lifecycle.
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Configuration config)
Initialize the module configuration using the given global
config |
default boolean |
isType(Class<?> type)
Checks whether this Module Configuration is of the given
type. |
default int |
phase()
Defines a phase in which this module's
initialize(Configuration), start(), shutdown()
will be invoked. |
void |
shutdown()
Invoked prior to shutdown of the application.
|
void |
start()
Invoked when the Configuration is started.
|
default ModuleConfiguration |
unwrap()
Returns the actual module configuration instance.
|
void initialize(Configuration config)
configconfig - the global configuration, providing access to generic componentsdefault int phase()
initialize(Configuration), start(), shutdown()
will be invoked.void start()
Configuration.start()void shutdown()
Configuration.shutdown()default ModuleConfiguration unwrap()
Copyright © 2010–2018. All rights reserved.