org.mmbase.core.event
Class TypedRelationEventListenerWrapper

java.lang.Object
  extended byorg.mmbase.core.event.TypedRelationEventListenerWrapper
All Implemented Interfaces:
EventListener, RelationEventListener

public class TypedRelationEventListenerWrapper
extends Object
implements RelationEventListener

This class is a wrapper for relation event listeners that only want to listen to events concerning a specific builder - more specifically, events concerning changes in the relations from a specific builder's nodes.

Since:
MMBase-1.8
Author:
Ernst Bunders

Constructor Summary
TypedRelationEventListenerWrapper(MMObjectBuilder builder, RelationEventListener wrappedListener, int direction, boolean descendants)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 void notify(RelationEvent event)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypedRelationEventListenerWrapper

public TypedRelationEventListenerWrapper(MMObjectBuilder builder,
                                         RelationEventListener wrappedListener,
                                         int direction,
                                         boolean descendants)
Parameters:
builder - The builder which must constrain the listener
wrappedListener - the relation event listener you want to wrap
direction - At which side of the relation nodes of this builders can be: RelationStep.DIRECTIONS_SOURCE, org.mmbase.storage.search.RelationStep#DIRECTIONS_DESTIONATION, or RelationStep.DIRECTIONS_BOTH
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(RelationEvent event)
Specified by:
notify in interface RelationEventListener

toString

public String toString()

equals

public boolean equals(Object o)

hashCode

public int hashCode()


MMBase build 1.8.1.20060716