org.apache.tapestry.listener
Class ListenerMethodInvokerImpl
java.lang.Object
org.apache.tapestry.listener.ListenerMethodInvokerImpl
- All Implemented Interfaces:
- ListenerMethodInvoker
public class ListenerMethodInvokerImpl
- extends java.lang.Object
- implements ListenerMethodInvoker
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).
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Method Summary |
void |
invokeListenerMethod(java.lang.Object target,
IRequestCycle cycle)
|
protected java.lang.Object |
invokeTargetMethod(java.lang.Object target,
java.lang.reflect.Method listenerMethod,
java.lang.Object[] parameters)
Provided as a hook so that subclasses can perform any additional work before or after
invoking the listener method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListenerMethodInvokerImpl
public ListenerMethodInvokerImpl(java.lang.String name,
java.lang.reflect.Method[] methods)
invokeListenerMethod
public void invokeListenerMethod(java.lang.Object target,
IRequestCycle cycle)
- Specified by:
invokeListenerMethod
in interface ListenerMethodInvoker
invokeTargetMethod
protected java.lang.Object invokeTargetMethod(java.lang.Object target,
java.lang.reflect.Method listenerMethod,
java.lang.Object[] parameters)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Provided as a hook so that subclasses can perform any additional work before or after
invoking the listener method.
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException