|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.service.impl.EventLinkerImpl
public class EventLinkerImpl
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).
| 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 |
|---|
public EventLinkerImpl(ErrorLog errorLog)
| Method Detail |
|---|
public void addEventListener(java.lang.Object producer,
java.lang.String eventSetName,
java.lang.Object consumer,
Location location)
EventLinker
addEventListener in interface EventLinkerproducer - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||