| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.struts.action.DynaActionFormClass
Implementation of DynaClass for
 DynaActionForm classes that allow developers to define
 ActionForms without having to individually code all of the classes.
 NOTE - This class is only used in the internal
 implementation of dynamic action form beans.  Applications never need
 to consult this documentation.
| Field Summary | |
protected  java.lang.Class | 
beanClass
The DynaActionForm implementation Class which
 we will use to create new bean instances. | 
protected  FormBeanConfig | 
config
The form bean configuration information for this class.  | 
protected static java.util.HashMap | 
dynaClasses
The set of DynaActionFormClass instances that have
 ever been created, keyed by the form bean name. | 
protected static java.lang.String | 
lock
The lockable object we can synchronize on, even if dynaClasses is null,  | 
protected  java.lang.String | 
name
The "dynamic class name" for this DynaClass. | 
protected  org.apache.commons.beanutils.DynaProperty[] | 
properties
The set of dynamic properties that are part of this DynaClass.  | 
protected  java.util.HashMap | 
propertiesMap
The set of dynamic properties that are part of this DynaClass, keyed by the property name.  | 
| Constructor Summary | |
private  | 
DynaActionFormClass(FormBeanConfig config)
Construct a new DynaActionFormClass for the specified form bean configuration.  | 
| Method Summary | |
static void | 
clear()
Clear our cache of DynaActionFormClass instances.  | 
static DynaActionFormClass | 
createDynaActionFormClass(FormBeanConfig config)
Create (if necessary) and return a new DynaActionFormClass
 instance for the specified form bean configuration instance. | 
protected  java.lang.Class | 
getBeanClass()
Return the implementation class we are using to construct new instances, re-introspecting our FormBeanConfig if necessary
 (that is, after being deserialized, since beanClass is
 marked transient. | 
 org.apache.commons.beanutils.DynaProperty[] | 
getDynaProperties()
Return an array of DynaPropertys for the properties
 currently defined in this DynaClass. | 
 org.apache.commons.beanutils.DynaProperty | 
getDynaProperty(java.lang.String name)
Return a property descriptor for the specified property, if it exists; otherwise, return null. | 
 java.lang.String | 
getName()
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. | 
protected  void | 
introspect(FormBeanConfig config)
Introspect our form bean configuration to identify the supported properties.  | 
 org.apache.commons.beanutils.DynaBean | 
newInstance()
Instantiate and return a new DynaActionForm instance,
 associated with this DynaActionFormClass. | 
 java.lang.String | 
toString()
Render a String representation of this object.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected transient java.lang.Class beanClass
DynaActionForm implementation Class which
 we will use to create new bean instances.
protected FormBeanConfig config
protected java.lang.String name
DynaClass.
protected org.apache.commons.beanutils.DynaProperty[] properties
protected java.util.HashMap propertiesMap
properties list.
protected static transient java.util.HashMap dynaClasses
DynaActionFormClass instances that have
 ever been created, keyed by the form bean name.
protected static java.lang.String lock
| Constructor Detail | 
private DynaActionFormClass(FormBeanConfig config)
createDynaActionFormClass() method.
config - The FormBeanConfig instance describing the properties
  of the bean to be created
java.lang.IllegalArgumentException - if the bean implementation class
  specified in the configuration is not DynaActionForm (or a subclass
  of DynaActionForm)| Method Detail | 
public java.lang.String getName()
getName() method of java.lang.ClassDynaClass implementation class to support
 different dynamic classes, with different sets of properties.
getName in interface org.apache.commons.beanutils.DynaClasspublic org.apache.commons.beanutils.DynaProperty getDynaProperty(java.lang.String name)
null.
getDynaProperty in interface org.apache.commons.beanutils.DynaClassname - Name of the dynamic property for which a descriptor
  is requested
java.lang.IllegalArgumentException - if no property name is specifiedpublic org.apache.commons.beanutils.DynaProperty[] getDynaProperties()
Return an array of DynaPropertys 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?
getDynaProperties in interface org.apache.commons.beanutils.DynaClass
public org.apache.commons.beanutils.DynaBean newInstance()
                                                  throws java.lang.IllegalAccessException,
                                                         java.lang.InstantiationException
Instantiate and return a new DynaActionForm instance,
 associated with this DynaActionFormClass.  The
 properties of the returned DynaActionForm will have been
 initialized to the default values specified in the form bean
 configuration information.
newInstance in interface org.apache.commons.beanutils.DynaClassjava.lang.IllegalAccessException - if the Class or the appropriate
  constructor is not accessible
java.lang.InstantiationException - if this Class represents an abstract
  class, an array class, a primitive type, or void; or if instantiation
  fails for some other reasonpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void clear()
public static DynaActionFormClass createDynaActionFormClass(FormBeanConfig config)
DynaActionFormClass
 instance for the specified form bean configuration instance.
config - The FormBeanConfig instance describing the properties
  of the bean to be created
java.lang.IllegalArgumentException - if the bean implementation class
  specified in the configuration is not DynaActionForm (or a subclass
  of DynaActionForm)protected java.lang.Class getBeanClass()
FormBeanConfig if necessary
 (that is, after being deserialized, since beanClass is
 marked transient.
protected void introspect(FormBeanConfig config)
config - The FormBeanConfig instance describing the properties
  of the bean to be created
java.lang.IllegalArgumentException - if the bean implementation class
  specified in the configuration is not DynaActionForm (or a subclass
  of DynaActionForm)
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||