public interface BeanInfo
extends org.jboss.util.JBossInterface
Modifier and Type | Method and Description |
---|---|
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.
|
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
|
String getName()
ClassInfo getClassInfo()
JoinpointFactory getJoinpointFactory()
Set<PropertyInfo> getProperties()
void setProperties(Set<PropertyInfo> properties)
properties
- a SetPropertyInfo getProperty(String name)
name
- the property nameIllegalArgumentException
- for a null name or if there is no such propertySet<ConstructorInfo> getConstructors()
void setConstructors(Set<ConstructorInfo> constructors)
constructors
- a SetSet<MethodInfo> getMethods()
void setMethods(Set<MethodInfo> methods)
methods
- a Setvoid setEvents(Set<EventInfo> events)
events
- a SetBeanInfoFactory getBeanInfoFactory()
Object newInstance() throws Throwable
Throwable
- for any errorObject newInstance(String[] paramTypes, Object[] params) throws Throwable
paramTypes
- the parameter typesparams
- the parametersThrowable
- for any errorObject newInstance(Class<?>[] paramTypes, Object[] params) throws Throwable
paramTypes
- the parameter typesparams
- the parametersThrowable
- for any errorObject newInstance(TypeInfo[] paramTypes, Object[] params) throws Throwable
paramTypes
- the parameter typesparams
- the parametersThrowable
- for any errorObject getProperty(Object bean, String name) throws Throwable
bean
- the beanname
- the property nameThrowable
- for any errorvoid setProperty(Object bean, String name, Object value) throws Throwable
bean
- the beanname
- the property namevalue
- the property valueThrowable
- for any errorObject invoke(Object bean, String name) throws Throwable
bean
- the beanname
- the method nameThrowable
- for any errorObject invoke(Object bean, String name, String[] paramTypes, Object[] params) throws Throwable
bean
- the beanname
- the method nameparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorObject invoke(Object bean, String name, Class<?>[] paramTypes, Object[] params) throws Throwable
bean
- the beanname
- the method nameparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorObject invoke(Object bean, String name, TypeInfo[] paramTypes, Object[] params) throws Throwable
bean
- the beanname
- the method nameparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorObject invokeStatic(String name) throws Throwable
name
- the method nameThrowable
- for any errorObject invokeStatic(String name, String[] paramTypes, Object[] params) throws Throwable
name
- the method nameparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorObject invokeStatic(String name, Class<?>[] paramTypes, Object[] params) throws Throwable
name
- the method nameparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.