|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.util.DispatchMethodInvoker
public class DispatchMethodInvoker
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.
Nested Class Summary | |
---|---|
static class |
DispatchMethodInvoker.MethodLookupException
Thrown when a dispatch method could not be resolved. |
Constructor Summary | |
---|---|
DispatchMethodInvoker(java.lang.Object target,
java.lang.Class[] parameterTypes)
Creates a dispatch method invoker. |
Method Summary | |
---|---|
java.lang.Class[] |
getParameterTypes()
Returns the parameter types defining the argument signature of the dispatch methods. |
java.lang.Object |
getTarget()
Returns the target object method calls are dispatched to. |
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Object[] arguments)
Dispatch a call with given arguments to named dispatcher method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DispatchMethodInvoker(java.lang.Object target, java.lang.Class[] parameterTypes)
target
- the target to dispatch toparameterTypes
- the parameter types defining the argument signature of the dispatch methodsMethod Detail |
---|
public java.lang.Object getTarget()
public java.lang.Class[] getParameterTypes()
public java.lang.Object invoke(java.lang.String methodName, java.lang.Object[] arguments) throws DispatchMethodInvoker.MethodLookupException, java.lang.Exception
methodName
- the name of the method to invokearguments
- the arguments to pass to the method
DispatchMethodInvoker.MethodLookupException
- when the method cannot be resolved
DispatchMethodInvoker.MethodLookupException
- when the invoked method throws an exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |