com.sun.genericra.util
Class MethodExecutor

java.lang.Object
  extended by com.sun.genericra.util.MethodExecutor
All Implemented Interfaces:
java.io.Serializable

public class MethodExecutor
extends java.lang.Object
implements java.io.Serializable

Execute the methods based on the parameters.

Author:
Binod P.G
See Also:
Serialized Form

Constructor Summary
MethodExecutor()
           
 
Method Summary
static void runJavaBeanMethod(java.lang.String value, java.lang.reflect.Method method, java.lang.Object obj)
          Exceute a simple set Method.
static void runJavaBeanMethod(java.lang.String name, java.lang.String value, java.lang.reflect.Method method, java.lang.Object obj)
          Exceute a simple set Method.
static void runMethod(java.lang.reflect.Method method, java.lang.Object obj, java.util.Vector values)
          Executes the method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodExecutor

public MethodExecutor()
Method Detail

runJavaBeanMethod

public static void runJavaBeanMethod(java.lang.String name,
                                     java.lang.String value,
                                     java.lang.reflect.Method method,
                                     java.lang.Object obj)
                              throws javax.resource.ResourceException
Exceute a simple set Method.

Parameters:
value - Value to be set.
method - Method object.
obj - Object on which the method to be executed.
Throws:
ResourceException, - in case of the mismatch of parameter values or a security violation.
javax.resource.ResourceException

runJavaBeanMethod

public static void runJavaBeanMethod(java.lang.String value,
                                     java.lang.reflect.Method method,
                                     java.lang.Object obj)
                              throws javax.resource.ResourceException
Exceute a simple set Method.

Parameters:
value - Value to be set.
method - Method object.
obj - Object on which the method to be executed.
Throws:
ResourceException, - in case of the mismatch of parameter values or a security violation.
javax.resource.ResourceException

runMethod

public static void runMethod(java.lang.reflect.Method method,
                             java.lang.Object obj,
                             java.util.Vector values)
                      throws javax.resource.ResourceException
Executes the method.

Parameters:
method - Method object.
obj - Object on which the method to be executed.
values - Parameter values for executing the method.
Throws:
ResourceException, - in case of the mismatch of parameter values or a security violation.
javax.resource.ResourceException