public class MultiResourceConfigurationBuilder extends EncryptionAwareConfigurationReader implements org.apache.commons.configuration2.builder.ConfigurationBuilder<org.apache.commons.configuration2.HierarchicalConfiguration<?>>
ConfigurationBuilder that creates the configuration from a set of specified resource configuration paths. Each
configuration from this path is then combined in a single configuration, where the latest configurations override the
first ones.| Modifier and Type | Field and Description |
|---|---|
protected String[] |
configPaths |
protected org.springframework.core.io.ResourceLoader |
resourceLoader |
configListDelimiter, DEFAULT_ENCRYPTED_VALUE_PREFIX, DEFAULT_LIST_DELIMITER, encryptedValuePrefix, prefixLookups, textEncryptor| Constructor and Description |
|---|
MultiResourceConfigurationBuilder(String[] configPaths,
org.springframework.core.io.ResourceLoader resourceLoader) |
MultiResourceConfigurationBuilder(String[] configPaths,
org.springframework.core.io.ResourceLoader resourceLoader,
char configListDelimiter,
String encryptedValuePrefix,
TextEncryptor configDecryptor) |
MultiResourceConfigurationBuilder(String[] configPaths,
org.springframework.core.io.ResourceLoader resourceLoader,
TextEncryptor configDecryptor) |
| Modifier and Type | Method and Description |
|---|---|
<E extends org.apache.commons.configuration2.event.Event> |
addEventListener(org.apache.commons.configuration2.event.EventType<E> eventType,
org.apache.commons.configuration2.event.EventListener<? super E> listener) |
org.apache.commons.configuration2.HierarchicalConfiguration<?> |
getConfiguration() |
<E extends org.apache.commons.configuration2.event.Event> |
removeEventListener(org.apache.commons.configuration2.event.EventType<E> eventType,
org.apache.commons.configuration2.event.EventListener<? super E> listener) |
readXmlConfiguration, readXmlConfiguration, readYamlConfiguration, readYamlConfiguration, readYamlConfigurationprotected String[] configPaths
protected org.springframework.core.io.ResourceLoader resourceLoader
public MultiResourceConfigurationBuilder(String[] configPaths, org.springframework.core.io.ResourceLoader resourceLoader)
public MultiResourceConfigurationBuilder(String[] configPaths, org.springframework.core.io.ResourceLoader resourceLoader, TextEncryptor configDecryptor)
public MultiResourceConfigurationBuilder(String[] configPaths, org.springframework.core.io.ResourceLoader resourceLoader, char configListDelimiter, String encryptedValuePrefix, TextEncryptor configDecryptor)
public org.apache.commons.configuration2.HierarchicalConfiguration<?> getConfiguration()
throws org.apache.commons.configuration2.ex.ConfigurationException
getConfiguration in interface org.apache.commons.configuration2.builder.ConfigurationBuilder<org.apache.commons.configuration2.HierarchicalConfiguration<?>>org.apache.commons.configuration2.ex.ConfigurationExceptionpublic <E extends org.apache.commons.configuration2.event.Event> void addEventListener(org.apache.commons.configuration2.event.EventType<E> eventType,
org.apache.commons.configuration2.event.EventListener<? super E> listener)
addEventListener in interface org.apache.commons.configuration2.event.EventSourcepublic <E extends org.apache.commons.configuration2.event.Event> boolean removeEventListener(org.apache.commons.configuration2.event.EventType<E> eventType,
org.apache.commons.configuration2.event.EventListener<? super E> listener)
removeEventListener in interface org.apache.commons.configuration2.event.EventSourceCopyright © 2020 CrafterCMS. All rights reserved.