org.mmbase.core.event
Class TypedNodeEventListenerWrapper

java.lang.Object
  extended byorg.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
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:
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()

equals

public boolean equals(Object o)

hashCode

public int hashCode()


MMBase build 1.8.1.20060716