org.apache.tapestry.listener
Class ListenerMapImpl

java.lang.Object
  extended by org.apache.tapestry.listener.ListenerMapImpl
All Implemented Interfaces:
ListenerMap

public class ListenerMapImpl
extends java.lang.Object
implements ListenerMap

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
ListenerMapImpl(java.lang.Object target, java.util.Map invokers)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerMapImpl

public ListenerMapImpl(java.lang.Object target,
                       java.util.Map invokers)
Method Detail

canProvideListener

public boolean canProvideListener(java.lang.String name)
Description copied from interface: ListenerMap
Returns true if this ListenerMapImpl can provide a listener with the given name.

Specified by:
canProvideListener in interface ListenerMap

getListener

public IActionListener getListener(java.lang.String name)
Description copied from interface: ListenerMap
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.

Specified by:
getListener in interface ListenerMap
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)

getListenerNames

public java.util.Collection getListenerNames()
Description copied from interface: ListenerMap
Returns an unmodifiable collection of the names of the listeners implemented by the target class.

Specified by:
getListenerNames in interface ListenerMap