public class AbstractBeanInfo extends org.jboss.util.JBossObject implements BeanInfo
| Modifier and Type | Field and Description |
|---|---|
protected ClassAdapter |
classAdapter
The class adapter
|
| Constructor and Description |
|---|
AbstractBeanInfo(BeanInfoFactory beanInfoFactory,
ClassAdapter classAdapter,
Set<PropertyInfo> properties,
Set<ConstructorInfo> constructors,
Set<MethodInfo> methods,
Set<EventInfo> events)
Create a new bean info
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperty(PropertyInfo property)
Add property.
|
boolean |
equals(Object object) |
protected PropertyInfo |
findPropertyInfo(String name)
Find property
|
BeanInfoFactory |
getBeanInfoFactory()
Get the bean info factory
|
ClassInfo |
getClassInfo()
Get the class information
|
Set<ConstructorInfo> |
getConstructors()
Get the constructor info.
|
Set<EventInfo> |
getEvents()
Get the event information.
|
int |
getHashCode() |
JoinpointFactory |
getJoinpointFactory()
Get the joinpoint factory
|
Set<MethodInfo> |
getMethods()
Get the method information.
|
String |
getName()
Get the bean name
|
Set<PropertyInfo> |
getProperties()
Get the property information.
|
Object |
getProperty(Object bean,
String name)
Get a property
|
PropertyInfo |
getProperty(String name)
Get a property
|
Object |
invoke(Object bean,
String name)
Invoke a method with no parameters
|
Object |
invoke(Object bean,
String name,
Class<?>[] paramTypes,
Object[] params)
Invoke a method
|
Object |
invoke(Object bean,
String name,
String[] paramTypes,
Object[] params)
Invoke a method
|
Object |
invoke(Object bean,
String name,
TypeInfo[] paramTypes,
Object[] params)
Invoke a method
|
Object |
invokeStatic(String name)
Invoke a static method with no parameters
|
Object |
invokeStatic(String name,
Class<?>[] paramTypes,
Object[] params)
Invoke a static method
|
Object |
invokeStatic(String name,
String[] paramTypes,
Object[] params)
Invoke a static method
|
Object |
invokeStatic(String name,
TypeInfo[] paramTypes,
Object[] params)
Invoke a static method
|
Object |
newInstance()
Create a new instance
|
Object |
newInstance(Class<?>[] paramTypes,
Object[] params)
Create a new instance
|
Object |
newInstance(String[] paramTypes,
Object[] params)
Create a new instance
|
Object |
newInstance(TypeInfo[] paramTypes,
Object[] params)
Create a new instance
|
protected void |
replaceAndAddProperty(PropertyInfo property)
Replace and add property.
|
protected PropertyInfo |
replaceProperty(PropertyInfo original)
Do we need to replace property due to access mode.
|
void |
setConstructors(Set<ConstructorInfo> constructors)
Set the constructor info.
|
void |
setEvents(Set<EventInfo> events)
set the event information.
|
void |
setMethods(Set<MethodInfo> methods)
Set the method information.
|
void |
setProperties(Set<PropertyInfo> properties)
Set the property information.
|
void |
setProperty(Object bean,
String name,
Object value)
Get a property
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer) |
void |
toString(org.jboss.util.JBossStringBuilder buffer) |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementationprotected ClassAdapter classAdapter
public AbstractBeanInfo(BeanInfoFactory beanInfoFactory, ClassAdapter classAdapter, Set<PropertyInfo> properties, Set<ConstructorInfo> constructors, Set<MethodInfo> methods, Set<EventInfo> events)
beanInfoFactory - the bean info factoryclassAdapter - the class adapterproperties - the propertiesconstructors - the constructorsmethods - the methodsevents - the eventspublic Set<PropertyInfo> getProperties()
BeanInfogetProperties in interface BeanInfopublic void setProperties(Set<PropertyInfo> properties)
BeanInfosetProperties in interface BeanInfoproperties - a Setpublic PropertyInfo getProperty(String name)
getProperty in interface BeanInfoname - the property nameIllegalArgumentException - if there is no such propertyprotected PropertyInfo findPropertyInfo(String name)
name - the property nameprotected void replaceAndAddProperty(PropertyInfo property)
property - the property to addprotected void addProperty(PropertyInfo property)
property - the property to addprotected PropertyInfo replaceProperty(PropertyInfo original)
original - the original propertypublic ClassInfo getClassInfo()
BeanInfogetClassInfo in interface BeanInfopublic JoinpointFactory getJoinpointFactory()
BeanInfogetJoinpointFactory in interface BeanInfopublic Set<ConstructorInfo> getConstructors()
BeanInfogetConstructors in interface BeanInfopublic void setConstructors(Set<ConstructorInfo> constructors)
BeanInfosetConstructors in interface BeanInfoconstructors - a Setpublic Set<EventInfo> getEvents()
BeanInfopublic void setEvents(Set<EventInfo> events)
BeanInfopublic Set<MethodInfo> getMethods()
BeanInfogetMethods in interface BeanInfopublic void setMethods(Set<MethodInfo> methods)
BeanInfosetMethods in interface BeanInfomethods - a Setpublic BeanInfoFactory getBeanInfoFactory()
BeanInfogetBeanInfoFactory in interface BeanInfopublic Object newInstance() throws Throwable
BeanInfonewInstance in interface BeanInfoThrowable - for any errorpublic Object newInstance(String[] paramTypes, Object[] params) throws Throwable
BeanInfonewInstance in interface BeanInfoparamTypes - the parameter typesparams - the parametersThrowable - for any errorpublic Object newInstance(Class<?>[] paramTypes, Object[] params) throws Throwable
BeanInfonewInstance in interface BeanInfoparamTypes - the parameter typesparams - the parametersThrowable - for any errorpublic Object newInstance(TypeInfo[] paramTypes, Object[] params) throws Throwable
BeanInfonewInstance in interface BeanInfoparamTypes - the parameter typesparams - the parametersThrowable - for any errorpublic Object getProperty(Object bean, String name) throws Throwable
BeanInfogetProperty in interface BeanInfobean - the beanname - the property nameThrowable - for any errorpublic void setProperty(Object bean, String name, Object value) throws Throwable
BeanInfosetProperty in interface BeanInfobean - the beanname - the property namevalue - the property valueThrowable - for any errorpublic Object invoke(Object bean, String name) throws Throwable
BeanInfopublic Object invoke(Object bean, String name, String[] paramTypes, Object[] params) throws Throwable
BeanInfopublic Object invoke(Object bean, String name, Class<?>[] paramTypes, Object[] params) throws Throwable
BeanInfopublic Object invoke(Object bean, String name, TypeInfo[] paramTypes, Object[] params) throws Throwable
BeanInfopublic Object invokeStatic(String name) throws Throwable
BeanInfoinvokeStatic in interface BeanInfoname - the method nameThrowable - for any errorpublic Object invokeStatic(String name, String[] paramTypes, Object[] params) throws Throwable
BeanInfoinvokeStatic in interface BeanInfoname - the method nameparamTypes - the parameter typesparams - the parametersThrowable - for any errorpublic Object invokeStatic(String name, Class<?>[] paramTypes, Object[] params) throws Throwable
BeanInfoinvokeStatic in interface BeanInfoname - the method nameparamTypes - the parameter typesparams - the parametersThrowable - for any errorpublic Object invokeStatic(String name, TypeInfo[] paramTypes, Object[] params) throws Throwable
BeanInfoinvokeStatic in interface BeanInfoname - the method nameparamTypes - the parameter typesparams - the parametersThrowable - for any errorpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectpublic int getHashCode()
getHashCode in class org.jboss.util.JBossObjectCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.