org.mmbase.core.event
Class TypedNodeEventListenerWrapper

java.lang.Object
  extended by org.mmbase.core.event.TypedNodeEventListenerWrapper
All Implemented Interfaces:
EventListener, NodeEventListener

public class TypedNodeEventListenerWrapper
extends Object
implements NodeEventListener

This class is a wrapper for node event listeners that only want to listen to events concerning a specific builder.

Since:
MMBase-1.8
Version:
$Id: TypedNodeEventListenerWrapper.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Ernst Bunders

Constructor Summary
TypedNodeEventListenerWrapper(MMObjectBuilder builder, NodeEventListener listener, boolean descendants)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 void notify(NodeEvent event)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypedNodeEventListenerWrapper

public TypedNodeEventListenerWrapper(MMObjectBuilder builder,
                                     NodeEventListener listener,
                                     boolean descendants)
Parameters:
builder - The builder for which to filter events.
listener - the node event listener you want to wrap
descendants - Whether also descendants of the given builder must be listened to. ('true' would be the must logical value).
Method Detail

notify

public void notify(NodeEvent event)
Specified by:
notify in interface NodeEventListener

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


MMBase 2.0-SNAPSHOT - null