|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SourceEvent
An event in the lifetime of a Source.
There are two pre-defined lifetime events for which the service subscribes (
CHANGE,REMOVE). Plugins notify these
events to SourceNotifiers so as to inform the service of changes in the
lifetime of data sources. In turn, the service broadcasts them to clients
that have expressed an interest in them.
Plugins that desire increased decoupling between some of their components may define additional source events, subscribe some components as consumers of these events, and notify these events from yet other components.
SourceNotifier,
Source.notifier(),
SourceConsumer| Field Summary | |
|---|---|
static SourceEvent |
CHANGE
Signals a change in the data source. |
static SourceEvent |
REMOVE
Signals that the data source is no longer accessible to the plugin. |
| Field Detail |
|---|
static final SourceEvent CHANGE
A notification of this event tells the service to broadcast the change to its clients.
static final SourceEvent REMOVE
A notification of this event tells the service to stop exposing the data source to its client and to reclaim resources allocated to its management.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||