|
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.util.JBossObject
org.jboss.beans.info.plugins.AbstractBeanInfo
public class AbstractBeanInfo
BeanInfo.
Field Summary | |
---|---|
protected ClassAdapter |
classAdapter
The class adapter |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Constructor Summary | |
---|---|
AbstractBeanInfo(BeanInfoFactory beanInfoFactory,
ClassAdapter classAdapter,
Set<PropertyInfo> properties,
Set<ConstructorInfo> constructors,
Set<MethodInfo> methods,
Set<EventInfo> events)
Create a new bean info |
Method Summary | |
---|---|
protected void |
addProperty(PropertyInfo property)
Add property. |
boolean |
equals(Object object)
|
protected PropertyInfo |
findPropertyInfo(String propertyName)
Finds a 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 beanName)
Get a property |
PropertyInfo |
getProperty(String propertyName)
Get a property |
Object |
invoke(Object bean,
String beanName)
Invoke a method with no parameters |
Object |
invoke(Object bean,
String beanName,
Class<?>[] paramTypes,
Object[] params)
Invoke a method |
Object |
invoke(Object bean,
String beanName,
String[] paramTypes,
Object[] params)
Invoke a method |
Object |
invoke(Object bean,
String beanName,
TypeInfo[] paramTypes,
Object[] params)
Invoke a method |
Object |
invokeStatic(String beanName)
Invoke a static method with no parameters |
Object |
invokeStatic(String beanName,
Class<?>[] paramTypes,
Object[] params)
Invoke a static method |
Object |
invokeStatic(String beanName,
String[] paramTypes,
Object[] params)
Invoke a static method |
Object |
invokeStatic(String beanName,
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)
Set a property |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString |
Field Detail |
---|
protected ClassAdapter classAdapter
Constructor Detail |
---|
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 eventsMethod Detail |
---|
public String getName()
BeanInfo
getName
in interface BeanInfo
public Set<PropertyInfo> getProperties()
BeanInfo
getProperties
in interface BeanInfo
public void setProperties(Set<PropertyInfo> properties)
BeanInfo
setProperties
in interface BeanInfo
properties
- a Setpublic PropertyInfo getProperty(String propertyName)
getProperty
in interface BeanInfo
propertyName
- the property name
IllegalArgumentException
- if there is no such propertyprotected PropertyInfo findPropertyInfo(String propertyName)
propertyName
- the name of the property
null
if no such property is foundprotected 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 property
public ClassInfo getClassInfo()
BeanInfo
getClassInfo
in interface BeanInfo
public JoinpointFactory getJoinpointFactory()
BeanInfo
getJoinpointFactory
in interface BeanInfo
public Set<ConstructorInfo> getConstructors()
BeanInfo
getConstructors
in interface BeanInfo
public void setConstructors(Set<ConstructorInfo> constructors)
BeanInfo
setConstructors
in interface BeanInfo
constructors
- a Setpublic Set<EventInfo> getEvents()
BeanInfo
getEvents
in interface BeanInfo
public void setEvents(Set<EventInfo> events)
BeanInfo
setEvents
in interface BeanInfo
events
- a Setpublic Set<MethodInfo> getMethods()
BeanInfo
getMethods
in interface BeanInfo
public void setMethods(Set<MethodInfo> methods)
BeanInfo
setMethods
in interface BeanInfo
methods
- a Setpublic BeanInfoFactory getBeanInfoFactory()
BeanInfo
getBeanInfoFactory
in interface BeanInfo
public Object newInstance() throws Throwable
BeanInfo
newInstance
in interface BeanInfo
Throwable
- for any errorpublic Object newInstance(String[] paramTypes, Object[] params) throws Throwable
BeanInfo
newInstance
in interface BeanInfo
paramTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object newInstance(Class<?>[] paramTypes, Object[] params) throws Throwable
BeanInfo
newInstance
in interface BeanInfo
paramTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object newInstance(TypeInfo[] paramTypes, Object[] params) throws Throwable
BeanInfo
newInstance
in interface BeanInfo
paramTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object getProperty(Object bean, String beanName) throws Throwable
BeanInfo
getProperty
in interface BeanInfo
bean
- the beanbeanName
- the property name
Throwable
- for any errorpublic void setProperty(Object bean, String name, Object value) throws Throwable
BeanInfo
setProperty
in interface BeanInfo
bean
- the beanname
- the property namevalue
- the property value
Throwable
- for any errorpublic Object invoke(Object bean, String beanName) throws Throwable
BeanInfo
invoke
in interface BeanInfo
bean
- the beanbeanName
- the method name
Throwable
- for any errorpublic Object invoke(Object bean, String beanName, String[] paramTypes, Object[] params) throws Throwable
BeanInfo
invoke
in interface BeanInfo
bean
- the beanbeanName
- the method nameparamTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object invoke(Object bean, String beanName, Class<?>[] paramTypes, Object[] params) throws Throwable
BeanInfo
invoke
in interface BeanInfo
bean
- the beanbeanName
- the method nameparamTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object invoke(Object bean, String beanName, TypeInfo[] paramTypes, Object[] params) throws Throwable
BeanInfo
invoke
in interface BeanInfo
bean
- the beanbeanName
- the method nameparamTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object invokeStatic(String beanName) throws Throwable
BeanInfo
invokeStatic
in interface BeanInfo
beanName
- the method name
Throwable
- for any errorpublic Object invokeStatic(String beanName, String[] paramTypes, Object[] params) throws Throwable
BeanInfo
invokeStatic
in interface BeanInfo
beanName
- the method nameparamTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object invokeStatic(String beanName, Class<?>[] paramTypes, Object[] params) throws Throwable
BeanInfo
invokeStatic
in interface BeanInfo
beanName
- the method nameparamTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic Object invokeStatic(String beanName, TypeInfo[] paramTypes, Object[] params) throws Throwable
BeanInfo
invokeStatic
in interface BeanInfo
beanName
- the method nameparamTypes
- the parameter typesparams
- the parameters
Throwable
- for any errorpublic boolean equals(Object object)
equals
in class Object
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
public int getHashCode()
getHashCode
in class org.jboss.util.JBossObject
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |