org.apache.tapestry.listener
Interface ListenerMap

All Known Implementing Classes:
ListenerMapImpl

public interface ListenerMap

Author:
Howard M. Lewis Ship

Method Summary
 boolean canProvideListener(java.lang.String name)
          Returns true if this ListenerMapImpl can provide a listener with the given name.
 IActionListener getListener(java.lang.String name)
          Gets a listener for the given name (which is both a property name and a method name).
 java.util.Collection getListenerNames()
          Returns an unmodifiable collection of the names of the listeners implemented by the target class.
 

Method Detail

getListener

IActionListener getListener(java.lang.String name)
Gets a listener for the given name (which is both a property name and a method name). The listener is created as needed, but is also cached for later use. The returned object implements the IActionListener.

Parameters:
name - the name of the method to invoke (the most appropriate method will be selected if there are multiple overloadings of the same method name)
Throws:
ApplicationRuntimeException - if the listener can not be created.

getListenerNames

java.util.Collection getListenerNames()
Returns an unmodifiable collection of the names of the listeners implemented by the target class.

Since:
1.0.6

canProvideListener

boolean canProvideListener(java.lang.String name)
Returns true if this ListenerMapImpl can provide a listener with the given name.

Since:
2.2