org.apache.hivemind.service
Interface EventLinker

All Known Implementing Classes:
EventLinkerImpl

public interface EventLinker

Service used to link two other services together using event notifications. The service producer will have the consumer registered as a listener.

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.
 

Method Detail

addEventListener

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. Typically, the producer is a service, and the consumer is some other service's core implementation.

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