org.apache.tapestry.listener
Class ListenerMap
java.lang.Object
|
+--org.apache.tapestry.listener.ListenerMap
- public class ListenerMap
- extends Object
Maps a class to a set of listeners based on the public methods of the class.
ListenerMapPropertyAccessor
is setup
to provide these methods as named properties of the ListenerMap.
- Since:
- 1.0.2
- Version:
- $Id: ListenerMap.java,v 1.4 2003/05/28 13:41:48 hlship Exp $
- Author:
- Howard Ship
ListenerMap
public ListenerMap(Object target)
getListener
public Object getListener(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 Collection getListenerNames()
- Returns an unmodifiable collection of the
names of the listeners implemented by the target class.
- Since:
- 1.0.6
canProvideListener
public boolean canProvideListener(String name)
- Returns true if this ListenerMap can provide a listener
with the given name.
- Since:
- 2.2
toString
public String toString()
- Overrides:
toString
in class Object