| java.lang.Object org.springframework.webflow.util.DispatchMethodInvoker
DispatchMethodInvoker | public class DispatchMethodInvoker (Code) | | Invoker and cache for dispatch methods that all share the same target object.
The dispatch methods typically share the same form, but multiple exist per
target object, and they only differ in name.
author: Keith Donald author: Ben Hale |
Inner Class :public static class MethodLookupException extends NestedRuntimeException | |
Method Summary | |
public Class[] | getParameterTypes() Returns the parameter types defining the argument signature of the
dispatch methods. | public Object | getTarget() Returns the target object method calls are dispatched to. | public Object | invoke(String methodName, Object[] arguments) Dispatch a call with given arguments to named dispatcher method. |
DispatchMethodInvoker | public DispatchMethodInvoker(Object target, Class[] parameterTypes)(Code) | | Creates a dispatch method invoker.
Parameters: target - the target to dispatch to Parameters: parameterTypes - the parameter types defining the argument signatureof the dispatch methods |
getParameterTypes | public Class[] getParameterTypes()(Code) | | Returns the parameter types defining the argument signature of the
dispatch methods.
|
getTarget | public Object getTarget()(Code) | | Returns the target object method calls are dispatched to.
|
invoke | public Object invoke(String methodName, Object[] arguments) throws MethodLookupException, Exception(Code) | | Dispatch a call with given arguments to named dispatcher method.
Parameters: methodName - the name of the method to invoke Parameters: arguments - the arguments to pass to the method the result of the method invokation throws: MethodLookupException - when the method cannot be resolved throws: Exception - when the invoked method throws an exception |
|
|