|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SourceNotifier
Manages subscriptions for and notifications of SourceEvents.
The service provides implementations of this interface and sets them on
Sources, and subscribes with them. Plugins may then use them to fire
events that the service should become aware of.
While the service is the primary subscriber to notifications of source events, plugin components may also acts as subscribers for increased decoupling from event producers.
SourceEvent,
Source.notifier()| Method Summary | |
|---|---|
void |
notify(SourceEvent topic)
Notifies subscribers of a SourceEvent event. |
void |
subscribe(SourceConsumer consumer,
SourceEvent... events)
Subscribes a SourceConsumer to one or more SourceEvents. |
| Method Detail |
|---|
void subscribe(SourceConsumer consumer,
SourceEvent... events)
SourceConsumer to one or more SourceEvents.
consumer - the consumerevents - the eventsvoid notify(SourceEvent topic)
SourceEvent event.
topic - the topic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||