|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.share.xml.beans.BeanDef
org.apache.myfaces.trinidadinternal.share.xml.beans.IntrospectionBeanDef
public class IntrospectionBeanDef
Implementation of BeanDef that uses introspection to identify properties. The classes used by this must have the following properties:
| Constructor Summary | |
|---|---|
IntrospectionBeanDef(java.lang.String className)
Create an IntrospectionBeanDef. |
|
IntrospectionBeanDef(java.lang.String className,
java.lang.String defaultProperty)
Create an IntrospectionBeanDef. |
|
| Method Summary | |
|---|---|
protected void |
addProperty(java.beans.PropertyDescriptor descriptor)
Hook for overriding the behavior of a found property. |
java.lang.Object |
createBean(java.lang.String namespaceURI,
java.lang.String localName)
Creates a bean, specifying the namespace URI and localName |
protected PropertyDef |
createPropertyDef(java.beans.PropertyDescriptor descriptor)
Hook for overriding the behavior of a found property. |
java.lang.Object |
finishBean(java.lang.Object bean)
"Finishes" a bean by transforming it into the final target object. |
PropertyDef |
getDefaultPropertyDef()
Gets the "default" property definition. |
PropertyDef |
getElementPropertyDef(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attrs)
Gets an property definition for a child element. |
PropertyDef |
getPropertyDef(java.lang.String name)
Gets an property definition. |
PropertyDef |
getPropertyDef(java.lang.String namespace,
java.lang.String name)
Gets an property definition for a namespaced property. |
boolean |
isInlineChildProperty(java.lang.String namespace,
java.lang.String name,
PropertyDef def)
Returns true if the PropertyDef is defined with an inline child element. |
protected void |
loadProperties()
Force the definition of the bean to be loaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntrospectionBeanDef(java.lang.String className)
className -
public IntrospectionBeanDef(java.lang.String className,
java.lang.String defaultProperty)
className - | Method Detail |
|---|
public PropertyDef getPropertyDef(java.lang.String name)
BeanDef
getPropertyDef in class BeanDefname - the property name
public PropertyDef getPropertyDef(java.lang.String namespace,
java.lang.String name)
BeanDef
getPropertyDef in class BeanDefnamespace - the namespacename - the property name
public java.lang.Object createBean(java.lang.String namespaceURI,
java.lang.String localName)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
BeanDef
createBean in class BeanDefnamespaceURI - the namespace URI of the beanlocalName - the local name of the bean
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic java.lang.Object finishBean(java.lang.Object bean)
BeanDef
finishBean in class BeanDefbean - the bean created by createBean()
public PropertyDef getElementPropertyDef(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attrs)
BeanDef
getElementPropertyDef in class BeanDefnamespace - the namespacename - the property nameattrs - the XML attributes
public PropertyDef getDefaultPropertyDef()
BeanDef
getDefaultPropertyDef in class BeanDef
public boolean isInlineChildProperty(java.lang.String namespace,
java.lang.String name,
PropertyDef def)
BeanDef
isInlineChildProperty in class BeanDefprotected void loadProperties()
addProperty
addProperty(java.beans.PropertyDescriptor)protected void addProperty(java.beans.PropertyDescriptor descriptor)
descriptor - the PropertyDescriptorprotected PropertyDef createPropertyDef(java.beans.PropertyDescriptor descriptor)
descriptor - the PropertyDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||