public class EventLinkerImpl extends BaseLocatable implements EventLinker
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 and Description |
|---|
EventLinkerImpl(ErrorLog errorLog) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getLocation, setLocationpublic EventLinkerImpl(ErrorLog errorLog)
public void addEventListener(java.lang.Object producer, java.lang.String eventSetName, java.lang.Object consumer, Location location)
EventLinkeraddEventListener 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