org.mmbase.core.event
Class TypedRelationEventListenerWrapper
java.lang.Object
org.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
- Version:
- $Id: TypedRelationEventListenerWrapper.java 34900 2009-05-01 16:29:42Z michiel $
- Author:
- Ernst Bunders
TypedRelationEventListenerWrapper
public TypedRelationEventListenerWrapper(MMObjectBuilder builder,
RelationEventListener wrappedListener,
int direction,
boolean descendants)
- Parameters:
builder - The builder which must constrain the listenerwrappedListener - the relation event listener you want to wrapdirection - At which side of the relation nodes of this builders can be: RelationStep.DIRECTIONS_SOURCE, RelationStep.DIRECTIONS_DESTINATION, or RelationStep.DIRECTIONS_BOTHdescendants - Whether also descendants of the given builder must be listened to. ('true' would be the must logical value).
notify
public void notify(RelationEvent event)
- Specified by:
notify in interface RelationEventListener
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