|
||||||||||
| 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 BeanInfoFactory |
beanInfoFactory
The BeanInfoFactory |
protected ClassAdapter |
classAdapter
The class adapter |
protected Set<ConstructorInfo> |
constructors
The constructors |
protected Set<EventInfo> |
events
The events |
protected Set<MethodInfo> |
methods
The methods |
protected String |
name
The class name |
protected Set<PropertyInfo> |
properties
The properties |
| 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 | |
|---|---|
boolean |
equals(Object object)
|
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 |
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)
|
| 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 String name
protected ClassAdapter classAdapter
protected Set<PropertyInfo> properties
protected Set<ConstructorInfo> constructors
protected Set<MethodInfo> methods
protected Set<EventInfo> events
protected BeanInfoFactory beanInfoFactory
| 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 events| Method Detail |
|---|
public String getName()
BeanInfo
getName in interface BeanInfopublic Set<PropertyInfo> getProperties()
BeanInfo
getProperties in interface BeanInfopublic void setProperties(Set<PropertyInfo> properties)
BeanInfo
setProperties in interface BeanInfoproperties - a Setpublic PropertyInfo getProperty(String name)
getProperty in interface BeanInfoname - the property name
IllegalArgumentException - if there is no such propertypublic ClassInfo getClassInfo()
BeanInfo
getClassInfo in interface BeanInfopublic JoinpointFactory getJoinpointFactory()
BeanInfo
getJoinpointFactory in interface BeanInfopublic Set<ConstructorInfo> getConstructors()
BeanInfo
getConstructors in interface BeanInfopublic void setConstructors(Set<ConstructorInfo> constructors)
BeanInfo
setConstructors in interface BeanInfoconstructors - a Setpublic Set<EventInfo> getEvents()
BeanInfo
getEvents in interface BeanInfopublic void setEvents(Set<EventInfo> events)
BeanInfo
setEvents in interface BeanInfoevents - a Setpublic Set<MethodInfo> getMethods()
BeanInfo
getMethods in interface BeanInfopublic void setMethods(Set<MethodInfo> methods)
BeanInfo
setMethods in interface BeanInfomethods - a Setpublic BeanInfoFactory getBeanInfoFactory()
BeanInfo
getBeanInfoFactory in interface BeanInfo
public Object newInstance()
throws Throwable
BeanInfo
newInstance in interface BeanInfoThrowable - for any error
public Object newInstance(String[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
newInstance in interface BeanInfoparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object newInstance(Class<?>[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
newInstance in interface BeanInfoparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object newInstance(TypeInfo[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
newInstance in interface BeanInfoparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object getProperty(Object bean,
String name)
throws Throwable
BeanInfo
getProperty in interface BeanInfobean - the beanname - the property name
Throwable - for any error
public void setProperty(Object bean,
String name,
Object value)
throws Throwable
BeanInfo
setProperty in interface BeanInfobean - the beanname - the property namevalue - the property value
Throwable - for any error
public Object invoke(Object bean,
String name)
throws Throwable
BeanInfo
invoke in interface BeanInfobean - the beanname - the method name
Throwable - for any error
public Object invoke(Object bean,
String name,
String[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
invoke in interface BeanInfobean - the beanname - the method nameparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object invoke(Object bean,
String name,
Class<?>[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
invoke in interface BeanInfobean - the beanname - the method nameparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object invoke(Object bean,
String name,
TypeInfo[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
invoke in interface BeanInfobean - the beanname - the method nameparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object invokeStatic(String name)
throws Throwable
BeanInfo
invokeStatic in interface BeanInfoname - the method name
Throwable - for any error
public Object invokeStatic(String name,
String[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
invokeStatic in interface BeanInfoname - the method nameparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object invokeStatic(String name,
Class<?>[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
invokeStatic in interface BeanInfoname - the method nameparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public Object invokeStatic(String name,
TypeInfo[] paramTypes,
Object[] params)
throws Throwable
BeanInfo
invokeStatic in interface BeanInfoname - the method nameparamTypes - the parameter typesparams - the parameters
Throwable - for any errorpublic boolean equals(Object object)
equals in class Objectpublic 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.JBossObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||