org.apache.commons.configuration.beanutils
public class ConfigurationDynaBean extends ConfigurationMap implements DynaBean
The ConfigurationDynaBean
maps nested and mapped properties
to the appropriate Configuration
subset using the
Configuration
method. Similarly, indexed properties reference lists of configuration
properties using the
getList
method. Setting an indexed property always throws an exception.
Note: Some of the methods expect that a dot (".") is used as property delimitor 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: $Revision: 492216 $, $Date: 2007-01-03 17:51:24 +0100 (Mi, 03 Jan 2007) $
Field Summary | |
---|---|
static Log | log The logger. |
static String | PROPERTY_DELIMITER Constant for the property delimiter. |
Constructor Summary | |
---|---|
ConfigurationDynaBean(Configuration configuration)
Creates a new instance of ConfigurationDynaBean and sets
the configuration this bean is associated with. |
Method Summary | |
---|---|
boolean | contains(String name, String key) |
Object | get(String name) |
Object | get(String name, int index) |
Object | get(String name, String key) |
DynaClass | getDynaClass() |
void | remove(String name, String key) |
void | set(String name, Object value) |
void | set(String name, int index, Object value) |
void | set(String name, String key, Object value) |
ConfigurationDynaBean
and sets
the configuration this bean is associated with.Parameters: configuration the configuration