| java.lang.Object org.compass.core.util.MethodInvoker
MethodInvoker | public class MethodInvoker (Code) | | Helper class that allows to specify a method to invoke in a
declarative fashion, be it static or non-static.
Usage: Specify targetClass/targetMethod respectively
targetObject/targetMethod, optionally specify arguments,
prepare the invoker. Afterwards, you can invoke the method
any number of times.
Typically not used directly but via its subclasses
MethodInvokingFactoryBean and MethodInvokingJobDetailFactoryBean.
author: kimchy See Also: MethodInvoker.prepare See Also: MethodInvoker.invoke |
getArguments | public Object[] getArguments()(Code) | | Retrun the arguments for the method invocation.
|
getTargetClass | public Class getTargetClass()(Code) | | Return the target class on which to call the target method.
|
getTargetMethod | public String getTargetMethod()(Code) | | Return the name of the method to be invoked.
|
getTargetObject | public Object getTargetObject()(Code) | | Return the target object on which to call the target method.
|
invoke | public Object invoke(Object targetObject, Object[] arguments) throws InvocationTargetException, IllegalAccessException(Code) | | Another invoke option. Here, the target object and the arguments can
be specified after the prerpare method has been called. Note, that the
arguments should be provided before the prepare as well so the method
can be found (or a template of the arguments).
|
setArguments | public void setArguments(Object[] arguments)(Code) | | Set arguments for the method invocation. If this property is not set,
or the Object array is of length 0, a method with no arguments is assumed.
|
|
|