r01f.reflection
Class MethodInvokeReflection
java.lang.Object
r01f.reflection.MethodInvokeReflection
public class MethodInvokeReflection
- extends java.lang.Object
|
Field Summary |
private java.lang.Object |
_bean
|
private java.lang.Class<?> |
_beanType
|
private java.lang.reflect.Method |
_method
|
|
Constructor Summary |
MethodInvokeReflection(java.lang.Class<?> beanType,
java.lang.Object bean,
java.lang.reflect.Method method)
|
|
Method Summary |
|
invoke()
Invoca un metodo sobre un objeto |
|
invoke(java.lang.Object... argValues)
Invoca un metodo sobre un objeto |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_beanType
private java.lang.Class<?> _beanType
_bean
private java.lang.Object _bean
_method
private java.lang.reflect.Method _method
MethodInvokeReflection
public MethodInvokeReflection(java.lang.Class<?> beanType,
java.lang.Object bean,
java.lang.reflect.Method method)
invoke
public <T> T invoke()
- Invoca un metodo sobre un objeto
- Returns:
- el objeto devuelto tras la invocación del metodo
- Throws:
ReflectionException
invoke
public <T> T invoke(java.lang.Object... argValues)
- Invoca un metodo sobre un objeto
- Parameters:
argValues - valores para los argumentos
- Returns:
- El objeto devuelto tras la invocacion del metodo
- Throws:
ReflectionException - si ocurre algun error