public interface Configurable
Config
object. Implementation of this interface gets a configuration
object and configure itself accordingly.
It is not specified if configuration is performed at object creation or warm reconfiguration. Implementation of this interface may choose to support warm configuration but is not mandatory.
Modifier and Type | Method and Description |
---|---|
void |
config(Config config)
Configure this configurable using a given configuration object.
|
void config(Config config) throws Exception
ConfigException
.
Any exception that may occur into configuration process are bubbled up.
config
- configuration object.ConfigException
- if given configuration object is not valid.Exception
- if anything goes wrong on configuration process.Copyright © 2018. All rights reserved.