org.oddjob.script
Class MethodInvoker
java.lang.Object
org.oddjob.script.MethodInvoker
- All Implemented Interfaces:
- Invoker
public class MethodInvoker
- extends Object
- implements Invoker
An Invoker
for a java method.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInvoker
public MethodInvoker(Object target)
- Constructor.
- Parameters:
target
- The object that contains the method.
invoke
public Object invoke(String name,
InvokerArguments parameters)
- Description copied from interface:
Invoker
- Invoke something.
- Specified by:
invoke
in interface Invoker
- Parameters:
name
- The name of the thing to be invoked.parameters
- Parameters. never null.
- Returns:
- The result of doing the invoking.