org.apache.tapestry.listener
Interface ListenerMethodInvoker

All Known Implementing Classes:
ListenerMethodInvokerImpl

public interface ListenerMethodInvoker

An object, used by a ListenerMap, to match requests (possibly with service parameters) to methods (possibly with arguments). Given a request, a (possibly null or empty) array of service parameters, and a target object (and its set of public void methods), the mapping will search for the mostly likely mapping. In order:

Since:
4.0
Author:
Howard M. Lewis Ship

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.
 

Method Detail

invokeListenerMethod

void invokeListenerMethod(Object target,
                          IRequestCycle cycle)
Called to invoke the bound listener method.

Parameters:
target - The object to call the listener method on.
cycle - The associated request.

getMethodName

String getMethodName()
The actual method name that this listener represents.

Returns:
The method name this listener is bound to.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.