package com.javaranch.dynadto;
import org.apache.commons.beanutils.BasicDynaClass;
import org.apache.commons.beanutils.DynaProperty;
/**
* Simple extension of org.apache.commons.beanutils.BasicDynaClass
* exposing the setProperties() method to this package.
*
* @author Jason Menard
* @version 1.0
*/
public class DynaDTODynaClass extends BasicDynaClass {
/**
* Constructs a new DynaDTODynaClass with default parameters.
*/
public DynaDTODynaClass() {
super(null, null, null);
}
/**
* Constructs a new DynaDTODynaClass with the specified parameters.
* @param name Name of this DynaBean class
* @param dynaBeanClass The implementation class for new instances
*/
public DynaDTODynaClass(String name, Class dynaBeanClass) {
super(name, dynaBeanClass, null);
}
/**
* Constructs a new DynaDTODynaClass with the specified parameters.
* @param name Name of this DynaBean class
* @param dynaBeanClass The implementation class for new instances
* @param properties Property descriptors for the supported properties
*/
public DynaDTODynaClass(String name, Class dynaBeanClass,
DynaProperty[] properties) {
super(name, dynaBeanClass, properties);
}
/**
* Set the list of dynamic properties supported by this DynaClass.
* @param properties List of dynamic properties to be supported
*/
protected void setProperties(DynaProperty[] properties) {
super.setProperties(properties);
}
}