com.primix.tapestry.listener
Class ListenerMap
java.lang.Object
|
+--com.primix.tapestry.listener.ListenerMap
- public class ListenerMap
- extends java.lang.Object
Maps a class to a set of listeners based on the public methods of the class.
ListenerMapHelper
is registered as the PropertyHelper
for
this class.
- Since:
- 1.0.2
- Version:
- $Id: ListenerMap.java,v 1.2 2001/10/08 18:28:40 hship Exp $
- Author:
- Howard Ship
Constructor Summary |
ListenerMap(java.lang.Object target)
|
Method Summary |
java.lang.Object |
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 a collection of the names of the listeners implemented by the target class. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ListenerMap
public ListenerMap(java.lang.Object target)
getListener
public java.lang.Object 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.
- Throws:
ApplicationRuntimeException
- if the listener can not be created.
getListenerNames
public java.util.Collection getListenerNames()
- Returns a collection of the names of the listeners implemented by the target class.
Returns a copy of the key set for the method map.
- Since:
- 1.0.6
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object