public interface ConfigurationMapper<T>
| Modifier and Type | Method and Description |
|---|---|
T |
processConfig(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config)
Reads a single profile from the given configuration
|
T |
readConfig(ConfigurationProvider provider,
String module,
String path,
String encoding,
String configId)
Reads the configuration from the specified input stream, extracts the specific sub-configuration identified by
configId and maps the configuration to a Java bean. |
T readConfig(ConfigurationProvider provider, String module, String path, String encoding, String configId) throws ConfigurationException
configId and maps the configuration to a Java bean.provider - the provider to read the configuration fileencoding - the charset encoding of the configuration fileconfigId - the ID of the specific sub-configuration to mapConfigurationException - if an error occursT processConfig(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) throws ConfigurationException
config - the profile configurationConfigurationException - if an error occursCopyright © 2021 CrafterCMS. All rights reserved.