C - Collection class type to which the given YAML file will be mappedpublic class ConfigurationYamlCollectionImpl<C> extends ConfigurationAbstractImpl<C>
Configuration implementation used for YAML files. Instances of this class accept a single YAML file which is
mapped to a collection of a given class type.| Constructor and Description |
|---|
ConfigurationYamlCollectionImpl(String sourceId,
File configFile,
EventBus eventBus,
com.fasterxml.jackson.core.type.TypeReference<C> typeReference) |
| Modifier and Type | Method and Description |
|---|---|
C |
load(File configFile)
Loads the configuration object from the configuration file.
|
getEventBus, getSourceId, getValue, init, onFileEvent, onFileEventMatch, reload, whenConfigFileCreated, whenConfigFileDeleted, whenConfigFileUpdatedpublic ConfigurationYamlCollectionImpl(String sourceId, File configFile, EventBus eventBus, com.fasterxml.jackson.core.type.TypeReference<C> typeReference) throws IOException
IOExceptionpublic C 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.