|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.beans.BeanUtils
public class BeanUtils
Provides utility methods for bean introspection.
Nested Class Summary | |
---|---|
static class |
BeanUtils.BeanTemplateFactory
Introspects a bean class to create a MetaObject representing the properties and other information necessary to create the MetaClass. |
Field Summary | |
---|---|
static BeanUtils.BeanTemplateFactory |
TEMPLATE_FACTORY
Constant factory that can create a MetaObject representing the properties and other information for a bean class. |
Constructor Summary | |
---|---|
BeanUtils()
|
Method Summary | |
---|---|
static MetaClass |
createBeanMetaClass(java.lang.Class javaClass)
Creates a meta-class for the specified Java class using the context class registry. |
static MetaClass |
createBeanMetaClass(java.lang.Class javaClass,
java.util.List propertyInfos)
Creates a meta-class for the specified Java class using the root class registry. |
static MetaClass |
createBeanMetaClass(java.lang.Class javaClass,
java.lang.String[] uniqueFields)
Creates a meta-class for the specified Java class using the context class registry. |
static MetaClass |
createBeanMetaClass(MetaClassRegistry classRegistry,
java.lang.Class javaClass)
Creates a meta-class for the specified Java class using the specified class registry. |
static MetaClass |
createBeanMetaClass(MetaClassRegistry classRegistry,
java.lang.Class javaClass,
java.util.List propertyInfos)
Creates a meta-class for the specified Java class using the specified class registry and property info list. |
static MetaClass |
createBeanMetaClass(MetaClassRegistry classRegistry,
java.lang.Class javaClass,
java.util.List propertyInfos,
java.lang.String[] uniqueFields)
Creates a meta-class for the specified Java class using the specified class registry and unique field list. |
static MetaClass |
createBeanMetaClass(MetaClassRegistry classRegistry,
java.lang.Class javaClass,
java.lang.String[] uniqueFields)
Creates a meta-class for the specified Java class using the specified class registry and unique field list. |
static MetaClass |
findBeanMetaClass(java.lang.Class type)
Returns the appropriate meta-class for the specified Java class searching in the context class registry. |
static MetaClass |
findBeanMetaClass(java.lang.Class type,
MetaClassRegistry classRegistry)
Returns the appropriate meta-class for the specified Java class. |
static MetaObjectFactory |
getBeanFactory()
Returns a factory that can be used to create new BeanMetaObjects based on a MetaClass. |
static MetaClass |
getBeanMetaClass(java.lang.Class type)
Returns the appropriate meta-class for the specified Java class searching in the context class registry. |
static MetaClass |
getBeanMetaClass(java.lang.Class type,
MetaClassRegistry classRegistry)
Returns the appropriate meta-class for the specified Java class. |
static java.util.List |
getBeanPropertyInfos(java.lang.Class javaClass)
Retrieves the list of property info objects for the specified Java class by using bean introspection. |
static java.util.List |
getBeanPropertyInfos(java.lang.Class javaClass,
boolean resolveTypes)
Retrieves the list of property info objects for the specified Java class by using bean introspection. |
static java.util.List |
getBeanPropertyInfos(MetaClassRegistry classRegistry,
java.lang.Class javaClass)
Retrieves the list of property info objects for the specified Java class by using bean introspection. |
static java.util.List |
getBeanPropertyInfos(MetaClassRegistry classRegistry,
java.lang.Class javaClass,
boolean resolveTypes)
Retrieves the list of property info objects for the specified Java class by using bean introspection. |
static java.lang.Class |
getClassForMetaClass(MetaClass type)
Attempts to do a reverse-lookup to find the Java class for a given meta-class. |
static MetaKit |
getMetaKit()
Returns the meta-kit for this implementation. |
static java.lang.String |
getNameForClass(java.lang.Class javaClass)
Returns the MetaClass name that would be used for the specified Java class. |
protected static void |
introspectClass(java.lang.Class javaClass,
org.progeeks.meta.beans.BeanUtils.PropertyIntrospection pi)
Internal method used to introspect the bean properties for the given java class. |
protected static void |
introspectInterface(java.lang.Class javaClass,
org.progeeks.meta.beans.BeanUtils.PropertyIntrospection pi)
|
static void |
main(java.lang.String[] args)
For testing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final BeanUtils.BeanTemplateFactory TEMPLATE_FACTORY
Constructor Detail |
---|
public BeanUtils()
Method Detail |
---|
public static MetaKit getMetaKit()
public static MetaObjectFactory getBeanFactory()
public static MetaClass createBeanMetaClass(MetaClassRegistry classRegistry, java.lang.Class javaClass) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static MetaClass createBeanMetaClass(MetaClassRegistry classRegistry, java.lang.Class javaClass, java.util.List propertyInfos) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static MetaClass createBeanMetaClass(MetaClassRegistry classRegistry, java.lang.Class javaClass, java.lang.String[] uniqueFields) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static MetaClass createBeanMetaClass(MetaClassRegistry classRegistry, java.lang.Class javaClass, java.util.List propertyInfos, java.lang.String[] uniqueFields) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static MetaClass createBeanMetaClass(java.lang.Class javaClass) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static MetaClass createBeanMetaClass(java.lang.Class javaClass, java.util.List propertyInfos) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static MetaClass createBeanMetaClass(java.lang.Class javaClass, java.lang.String[] uniqueFields) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static java.lang.String getNameForClass(java.lang.Class javaClass)
public static java.util.List getBeanPropertyInfos(MetaClassRegistry classRegistry, java.lang.Class javaClass, boolean resolveTypes) throws java.beans.IntrospectionException
java.beans.IntrospectionException
protected static void introspectInterface(java.lang.Class javaClass, org.progeeks.meta.beans.BeanUtils.PropertyIntrospection pi) throws java.beans.IntrospectionException
java.beans.IntrospectionException
protected static void introspectClass(java.lang.Class javaClass, org.progeeks.meta.beans.BeanUtils.PropertyIntrospection pi) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static java.util.List getBeanPropertyInfos(MetaClassRegistry classRegistry, java.lang.Class javaClass) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static java.util.List getBeanPropertyInfos(java.lang.Class javaClass) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static java.util.List getBeanPropertyInfos(java.lang.Class javaClass, boolean resolveTypes) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static MetaClass getBeanMetaClass(java.lang.Class type, MetaClassRegistry classRegistry)
public static MetaClass getBeanMetaClass(java.lang.Class type)
public static MetaClass findBeanMetaClass(java.lang.Class type, MetaClassRegistry classRegistry)
public static MetaClass findBeanMetaClass(java.lang.Class type)
public static java.lang.Class getClassForMetaClass(MetaClass type)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |