Class ConfigurationDynaBean
java.lang.Object
java.util.AbstractMap<Object,Object>
org.apache.commons.configuration.ConfigurationMap
org.apache.commons.configuration.beanutils.ConfigurationDynaBean
public class ConfigurationDynaBean
extends ConfigurationMap
implements org.apache.commons.beanutils.DynaBean
The ConfigurationDynaBean dynamically reads and writes
configurations properties from a wrapped configuration-collection
Configuration instance. It also
implements a Map interface so that it can be used in
JSP 2.0 Expression Language expressions.
The ConfigurationDynaBean maps nested and mapped properties
to the appropriate Configuration subset using the
Configuration.subset(String)
method. Similarly, indexed properties reference lists of configuration
properties using the
Configuration.getList(String)
method. Setting an indexed property is supported, too.
Note: Some of the methods expect that a dot (".") is used as property delimiter for the wrapped configuration. This is true for most of the default configurations. Hierarchical configurations, for which a specific expression engine is set, may cause problems.
- Since:
- 1.0-rc1
- Version:
- $Id: ConfigurationDynaBean.java 1366932 2012-07-29 20:06:31Z oheger $
- Author:
- Ricardo Gladwell
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationDynaBean(Configuration configuration) Creates a new instance ofConfigurationDynaBeanand sets the configuration this bean is associated with. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.commons.beanutils.DynaClassvoidvoidvoidvoidMethods inherited from class ConfigurationMap
entrySet, get, getConfiguration, putMethods inherited from class AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ConfigurationDynaBean
Creates a new instance ofConfigurationDynaBeanand sets the configuration this bean is associated with.- Parameters:
configuration- the configuration
-
-
Method Details
-
set
-
get
-
contains
-
get
-
get
-
getDynaClass
- Specified by:
getDynaClassin interfaceorg.apache.commons.beanutils.DynaBean
-
remove
-
set
-
set
-