org.apache.hivemind.service.impl
Class EventLinkerImpl

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.service.impl.EventLinkerImpl
All Implemented Interfaces:
Locatable, LocationHolder, EventLinker

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

Constructor Summary
EventLinkerImpl(ErrorLog errorLog)
           
 
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 org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLinkerImpl

public EventLinkerImpl(ErrorLog errorLog)
Method Detail

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


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.