|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.beans.info.plugins.AbstractBeanInfoFactory
public class AbstractBeanInfoFactory
A bean info factory.
Field Summary | |
---|---|
protected Map<ClassLoader,Map<ClassInfo,Map<BeanAccessMode,BeanInfo>>> |
cache
The cache |
Constructor Summary | |
---|---|
AbstractBeanInfoFactory()
Create a new bean info factory |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<ClassLoader,Map<ClassInfo,Map<BeanAccessMode,BeanInfo>>> cache
Constructor Detail |
---|
public AbstractBeanInfoFactory()
Method Detail |
---|
protected static boolean isGetter(MethodInfo minfo)
protected static boolean isSetter(MethodInfo minfo)
protected static String getUpperPropertyName(String name)
protected static String getLowerPropertyName(String name)
public BeanInfo getBeanInfo(ClassAdapter classAdapter)
BeanInfoFactory
getBeanInfo
in interface BeanInfoFactory
classAdapter
- the classAdapter
public BeanInfo getBeanInfo(ClassAdapter classAdapter, BeanAccessMode accessMode)
BeanInfoFactory
getBeanInfo
in interface BeanInfoFactory
classAdapter
- the classAdapteraccessMode
- the access mode
protected 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 events
protected Set<ConstructorInfo> getConstructors(ClassInfo classInfo)
classInfo
- the class info
protected Set<MethodInfo> getMethods(ClassInfo classInfo)
classInfo
- the class info
protected Set<PropertyInfo> getBeanProperties(Set<MethodInfo> methods)
methods
- the methods
protected TypeInfo getPropertyType(MethodInfo getter, MethodInfo setter)
getter
- the gettersetter
- the setter
protected Set<PropertyInfo> getAnnotationProperties(Set<MethodInfo> methods)
methods
- the methods
protected Set<EventInfo> getEvents(ClassInfo classInfo)
classInfo
- the class info
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |