public final class ManagerConfiguration extends Object
clear()
must be used in order to reset this configuration object.
Every Manager
holds its own configuration and programmer has
to take care of the initialization of the configuration. Default SimonManager
is privileged and can be configured via file or resource when Java property javasimon.config.file
(constant SimonManager.PROPERTY_CONFIG_FILE_NAME
)
or javasimon.config.resource
(constant
SimonManager.PROPERTY_CONFIG_RESOURCE_NAME
) is used.
Structure of the configuration XML:
<simon-configuration>
... TODO
</simon-configuration>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears any previously loaded configuration.
|
void |
readConfig(Reader reader)
Reads config from provided buffered reader.
|
public void clear()
public void readConfig(Reader reader) throws IOException
reader
- reader containing configurationIOException
- thrown if problem occurs while reading from the readerCopyright © 2019. All rights reserved.