public class AbstractBeanInfoFactory extends Object implements BeanInfoFactory
Modifier and Type | Field and Description |
---|---|
protected Map<ClassLoader,Map<ClassInfo,Map<BeanAccessMode,BeanInfo>>> |
cache
The cache
|
Constructor and Description |
---|
AbstractBeanInfoFactory()
Create a new bean info factory
|
Modifier and Type | Method and Description |
---|---|
protected BeanInfo |
createBeanInfo(ClassAdapter classAdapter,
BeanAccessMode accessMode,
Set<PropertyInfo> properties,
Set<ConstructorInfo> constructors,
Set<MethodInfo> methods,
Set<EventInfo> events)
Create the bean info
|
protected Set<PropertyInfo> |
getAnnotationProperties(Set<MethodInfo> methods)
Get the properties for an annotation
|
BeanInfo |
getBeanInfo(ClassAdapter classAdapter)
Retrieve the bean information
|
BeanInfo |
getBeanInfo(ClassAdapter classAdapter,
BeanAccessMode accessMode)
Retrieve the bean information
|
protected Set<PropertyInfo> |
getBeanProperties(Set<MethodInfo> methods)
Get the properties for a bean
|
protected Set<ConstructorInfo> |
getConstructors(ClassInfo classInfo)
Get the constructors
|
protected Set<EventInfo> |
getEvents(ClassInfo classInfo)
Get the events
|
protected static String |
getLowerPropertyName(String name) |
protected Set<MethodInfo> |
getMethods(ClassInfo classInfo)
Get the methods
|
protected TypeInfo |
getPropertyType(MethodInfo getter,
MethodInfo setter)
Determine the type of PropertyInfo.
|
protected static String |
getUpperPropertyName(String name) |
protected static boolean |
isGetter(MethodInfo minfo) |
protected static boolean |
isSetter(MethodInfo minfo) |
protected Map<ClassLoader,Map<ClassInfo,Map<BeanAccessMode,BeanInfo>>> cache
public AbstractBeanInfoFactory()
protected static boolean isGetter(MethodInfo minfo)
protected static boolean isSetter(MethodInfo minfo)
public BeanInfo getBeanInfo(ClassAdapter classAdapter)
BeanInfoFactory
getBeanInfo
in interface BeanInfoFactory
classAdapter
- the classAdapterpublic BeanInfo getBeanInfo(ClassAdapter classAdapter, BeanAccessMode accessMode)
BeanInfoFactory
getBeanInfo
in interface BeanInfoFactory
classAdapter
- the classAdapteraccessMode
- the access modeprotected BeanInfo createBeanInfo(ClassAdapter classAdapter, BeanAccessMode accessMode, Set<PropertyInfo> properties, Set<ConstructorInfo> constructors, Set<MethodInfo> methods, Set<EventInfo> events)
classAdapter
- the class adapteraccessMode
- the access modeproperties
- the propertiesconstructors
- the constructorsmethods
- the methodsevents
- the eventsprotected Set<ConstructorInfo> getConstructors(ClassInfo classInfo)
classInfo
- the class infoprotected Set<MethodInfo> getMethods(ClassInfo classInfo)
classInfo
- the class infoprotected Set<PropertyInfo> getBeanProperties(Set<MethodInfo> methods)
methods
- the methodsprotected TypeInfo getPropertyType(MethodInfo getter, MethodInfo setter)
getter
- the gettersetter
- the setterprotected Set<PropertyInfo> getAnnotationProperties(Set<MethodInfo> methods)
methods
- the methodsCopyright © 2016 JBoss by Red Hat. All rights reserved.