Package org.oddjob.script
Class MethodInvoker
java.lang.Object
org.oddjob.script.MethodInvoker
- All Implemented Interfaces:
Invoker
An
Invoker for a java method.- Author:
- rob
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(String name, InvokerArguments parameters) Invoke something.
-
Constructor Details
-
MethodInvoker
Constructor.- Parameters:
target- The object that contains the method.
-
-
Method Details
-
invoke
public Object invoke(String name, InvokerArguments parameters) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException Description copied from interface:InvokerInvoke something.- Specified by:
invokein interfaceInvoker- Parameters:
name- The name of the thing to be invoked.parameters- Parameters. never null.- Returns:
- The result of doing the invoking.
- Throws:
IllegalArgumentExceptionIllegalAccessExceptionInvocationTargetException
-