java.lang.Object
org.apache.commons.configuration.beanutils.ConfigurationDynaClass
- All Implemented Interfaces:
- org.apache.commons.beanutils.DynaClass
- public class ConfigurationDynaClass
- extends java.lang.Object
- implements org.apache.commons.beanutils.DynaClass
The ConfigurationDynaClass dynamically determines properties for
a ConfigurationDynaBean from a wrapped configuration-collection
org.apache.commons.configuration.Configuration instance.
- Since:
- 1.0-rc1
- Version:
- $Revision: 1.4 $, $Date: 2004/09/21 17:49:39 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.commons.logging.Log log
configuration
org.apache.commons.configuration.Configuration configuration
ConfigurationDynaClass
public ConfigurationDynaClass(org.apache.commons.configuration.Configuration configuration)
- Construct an instance of a
ConfigurationDynaClass
wrapping the specified Configuration instance.
getDynaProperty
public org.apache.commons.beanutils.DynaProperty getDynaProperty(java.lang.String name)
- Description copied from interface:
org.apache.commons.beanutils.DynaClass
- Return a property descriptor for the specified property, if it exists;
otherwise, return
null.
- Specified by:
getDynaProperty in interface org.apache.commons.beanutils.DynaClass
getDynaProperties
public org.apache.commons.beanutils.DynaProperty[] getDynaProperties()
- Description copied from interface:
org.apache.commons.beanutils.DynaClass
Return an array of ProperyDescriptors for the properties
currently defined in this DynaClass. If no properties are defined, a
zero-length array will be returned.
FIXME - Should we really be implementing
getBeanInfo() instead, which returns property descriptors
and a bunch of other stuff?
- Specified by:
getDynaProperties in interface org.apache.commons.beanutils.DynaClass
getName
public java.lang.String getName()
- Description copied from interface:
org.apache.commons.beanutils.DynaClass
- Return the name of this DynaClass (analogous to the
getName() method of java.lang.ClassDynaClass implementation class to support
different dynamic classes, with different sets of properties.
- Specified by:
getName in interface org.apache.commons.beanutils.DynaClass
newInstance
public org.apache.commons.beanutils.DynaBean newInstance()
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
- Description copied from interface:
org.apache.commons.beanutils.DynaClass
- Instantiate and return a new DynaBean instance, associated
with this DynaClass.
- Specified by:
newInstance in interface org.apache.commons.beanutils.DynaClass