public class BeanClassTyper extends java.lang.Object implements DynamicBeanTyper
This class is an implementation of DynamicBeanTyper that treats a java.lang.Class as a dynamic bean type, thus permitting a regular JavaBean to reveal its BeanInfo through the DynamicBeanInfo interface.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
BeanClassTyper() |
Modifier and Type | Method and Description |
---|---|
static DynamicBeanInfo |
createClassBeanInfo(java.lang.Class pClass)
Return a straight BeanClassInfo for a class, or a merger of all
BeanClassInfos of all superinterfaces of an interface, since the
regular Introspector does not analyze superinterfaces of an
interface, only its own declared properties.
|
DynamicBeanInfo |
getBeanInfoFromType(java.lang.Object pBeanType)
Create a DynamicBeanInfo for some Class.
|
public DynamicBeanInfo getBeanInfoFromType(java.lang.Object pBeanType) throws java.beans.IntrospectionException
getBeanInfoFromType
in interface DynamicBeanTyper
pBeanType
- an object describing some set of beansjava.beans.IntrospectionException
- if no information is available.public static DynamicBeanInfo createClassBeanInfo(java.lang.Class pClass) throws java.beans.IntrospectionException
NOTE: getBeanInfoFromType() should be used in most cases, since it caches data. This method should only be used for creating a new DynamicBeanInfo instance.
pClass
- the class to create a bean info for.java.beans.IntrospectionException