T - Class type to which the given XML file will be mappedpublic class ConfigurationXmlImpl<T> extends ConfigurationAbstractImpl<T>
Configuration implementation used for XML files. Instances of this class accept a single XML file which is
mapped to a given class type.| Constructor and Description |
|---|
ConfigurationXmlImpl(String sourceId,
File configFile,
EventBus eventBus,
Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
T |
load(File configFile)
Loads the configuration object from the configuration file.
|
getEventBus, getSourceId, getValue, init, onFileEvent, onFileEventMatch, reload, whenConfigFileCreated, whenConfigFileDeleted, whenConfigFileUpdatedpublic ConfigurationXmlImpl(String sourceId, File configFile, EventBus eventBus, Class<T> clazz) throws IOException
IOExceptionpublic T load(File configFile) throws IOException
ConfigurationconfigFile - Non-null configuration fileIOException - On any I/O error while reading the configuration fileCopyright © 2016–2017. All rights reserved.