org.apache.hivemind.service.impl
Class EventLinkerImpl
java.lang.Object
|
+--org.apache.hivemind.impl.BaseLocatable
|
+--org.apache.hivemind.service.impl.EventLinkerImpl
- All Implemented Interfaces:
- EventLinker, Locatable, LocationHolder
- public class EventLinkerImpl
- extends BaseLocatable
- implements EventLinker
Implementation of EventLinker
. Will output warnings
whenever a consumer can't be registered for at least one event set (which can happen
when the consumer does not implement the necessary interfaces).
- Author:
- Howard Lewis Ship
Method Summary |
void |
addEventListener(java.lang.Object producer,
java.lang.String eventSetName,
java.lang.Object consumer,
Location location)
Adds the consumer as a listener of events published by the producer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventLinkerImpl
public EventLinkerImpl(org.apache.commons.logging.Log log,
ErrorHandler errorHandler)
addEventListener
public void addEventListener(java.lang.Object producer,
java.lang.String eventSetName,
java.lang.Object consumer,
Location location)
- Description copied from interface:
EventLinker
- Adds the consumer as a listener of events published by the producer. Typically,
the producer is a service, and the consumer is some other service's core
implementation.
- Specified by:
addEventListener
in interface EventLinker
- Parameters:
producer
- the object which will be publishing the events.eventSetName
- the name of an event set; the consumer will only
be registered for that set of events.consumer
- the object which will be added as a listener.location
- used when reporting errors, may be null