org.mmbase.core.event
Class RelationEventBroker
java.lang.Object
org.mmbase.core.event.EventBroker
org.mmbase.core.event.AbstractEventBroker
org.mmbase.core.event.RelationEventBroker
public class RelationEventBroker
- extends AbstractEventBroker
This class is the event broker implementation for the RelationEvent
- Since:
- MMBase-1.8
- Version:
- $Id: RelationEventBroker.java 41943 2010-04-16 17:18:19Z michiel $
- Author:
- Ernst Bunders, Ernst Bunders
|
Field Summary |
static String |
PROPERTY_NODETYPE
use this property to make shure your listener only gets the relation
events where the node number matches the given value. |
PROPERTY_NODETYPE
public static final String PROPERTY_NODETYPE
- use this property to make shure your listener only gets the relation
events where the node number matches the given value.
- See Also:
- Constant Field Values
RelationEventBroker
public RelationEventBroker()
canBrokerForListener
public boolean canBrokerForListener(EventListener listener)
- Description copied from class:
EventBroker
- this method should return true if this broker can accept and propagate
events to the listener of this type. There are no fixed criteria for this.
Most implementions do
event instanceof <EventListener associated with this broker>
- Specified by:
canBrokerForListener in class EventBroker
canBrokerForEvent
public boolean canBrokerForEvent(Event event)
- Description copied from class:
EventBroker
- this method should return true if this event broker can broker for
events of this type. There are no fixed criteria for this.
Most implementions do
event instanceof <EvenType associated with this broker>
- Specified by:
canBrokerForEvent in class EventBroker
notifyEventListener
protected void notifyEventListener(Event event,
EventListener listener)
throws ClassCastException
- Description copied from class:
EventBroker
- This method has two functions. It must cast both event and listener to
the proper type and invoke the event on the listener. But it must allso
check if the listener has constraint properties set. if so it must use
them to decide if the event should be invoked on this listener.
- Specified by:
notifyEventListener in class EventBroker
- Throws:
ClassCastException
toString
public String toString()
- Specified by:
toString in class EventBroker
MMBase 2.0-SNAPSHOT - null