|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectr01f.reflection.BeanReflection
public class BeanReflection
| Field Summary | |
|---|---|
private java.lang.Class<?> |
_beanType
|
private java.lang.Class<?>[] |
_constructorArgsTypes
|
| Constructor Summary | |
|---|---|
BeanReflection(java.lang.Class<?> beanClassDef)
Constructor a partir de la definición de la clase |
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getType()
Devuelve el tipo del bean |
BeanInstanceReflection |
load(java.lang.Object... constructorArgs)
Obtiene una instancia de una clase a partir del nombre completo (incluido paquete) de la clase y utilizando el constructor por defecto Por defecto intenta hacer accesible el constructor... |
FieldReflection |
staticField(java.lang.String fieldName)
Obtiene un miembro estático |
MethodInvokeReflection |
staticMethod(java.lang.String methodName,
java.lang.Class<?>... paramTypes)
Obtiene un método estático |
BeanReflection |
withConstructor(java.lang.Class<?>... constructorArgsTypes)
Establece el constructor a utilizar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Class<?> _beanType
private java.lang.Class<?>[] _constructorArgsTypes
| Constructor Detail |
|---|
public BeanReflection(java.lang.Class<?> beanClassDef)
beanClassDef - la definición de la clase| Method Detail |
|---|
public java.lang.Class<?> getType()
public BeanReflection withConstructor(java.lang.Class<?>... constructorArgsTypes)
constructorArgsTypes - parametros del constructor a utilizarpublic BeanInstanceReflection load(java.lang.Object... constructorArgs)
ReflectionException - si no se puede obtener la instancia del objeto
public MethodInvokeReflection staticMethod(java.lang.String methodName,
java.lang.Class<?>... paramTypes)
methodName - nombre del metodoparamTypes - tipo de datos de los parametros
ReflectionException - si no se encentra el métodopublic FieldReflection staticField(java.lang.String fieldName)
fieldName - nombre del miembro
ReflectionException - si no se encuentra el miembro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||