|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.listener.ListenerMethodInvokerImpl
public class ListenerMethodInvokerImpl
Logic for mapping a listener method name to an actual method invocation; this may require a little searching to find the correct version of the method, based on the number of parameters to the method (there's a lot of flexibility in terms of what methods may be considered a listener method).
| Constructor Summary | |
|---|---|
ListenerMethodInvokerImpl(String name,
Method[] methods)
|
|
| Method Summary | |
|---|---|
String |
getMethodName()
The actual method name that this listener represents. |
void |
invokeListenerMethod(Object target,
IRequestCycle cycle)
Called to invoke the bound listener method. |
protected Object |
invokeTargetMethod(Object target,
Method listenerMethod,
Object[] parameters)
Provided as a hook so that subclasses can perform any additional work before or after invoking the listener method. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListenerMethodInvokerImpl(String name,
Method[] methods)
| Method Detail |
|---|
public void invokeListenerMethod(Object target,
IRequestCycle cycle)
ListenerMethodInvoker
invokeListenerMethod in interface ListenerMethodInvokertarget - The object to call the listener method on.cycle - The associated request.
protected Object invokeTargetMethod(Object target,
Method listenerMethod,
Object[] parameters)
throws IllegalAccessException,
InvocationTargetException
IllegalAccessException
InvocationTargetExceptionpublic String getMethodName()
ListenerMethodInvoker
getMethodName in interface ListenerMethodInvokerpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||