|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ProviderListener
interface reports all changes which happen
to the Provider object.
These state changes are reported as events
to the ProviderListener
method corresponding
to the type of event.
Applications
must instantiate an object which implements this interface and then use
the Provider.addProviderListener()
) method to register the object to
receive all future events associated with the Provider object.
The ProviderListener
methods each receive one event at a time,
unlike the ProviderObserver
.
providerInService
,
providerOutOfService
, and providerShutdown
.
ProviderListener.providerListenerEndedEvent()
method. This indicates
that the application will not
receive further events associated with the Provider object. This observer
will no longer be reported via the Provider.getProviderListeners
method.
Provider
,
ProviderEvent
Method Summary | |
void |
providerEventTransmissionEnded(ProviderEvent event)
The providerEventTransmissionEnded method is called to indicate
that the application will no longer receive Provider events on the instance of the
ProviderListener . |
void |
providerInService(ProviderEvent event)
The providerInService method is called to indicate
that the state of the Provider object has changed
to Provider.IN_SERVICE . |
void |
providerOutOfService(ProviderEvent event)
The providerOutOfService method is called to indicate
that the state of
the Provider object has changed to Provider.OUT_OF_SERVICE . |
void |
providerShutdown(ProviderEvent event)
The providerShutdown method is called to indicate that the state of the
Provider object has changed to Provider.SHUTDOWN . |
Method Detail |
public void providerInService(ProviderEvent event)
providerInService
method is called to indicate
that the state of the Provider object has changed
to Provider.IN_SERVICE
.
a
- ProviderEvent with event ID ProviderEvent.PROVIDER_IN_SERVICE.public void providerEventTransmissionEnded(ProviderEvent event)
providerEventTransmissionEnded
method is called to indicate
that the application will no longer receive Provider events on the instance of the
ProviderListener
.
a
- ProviderEvent with event ID ProviderEvent.PROVIDER_EVENT_TRANSMISSION_ENDED.public void providerOutOfService(ProviderEvent event)
providerOutOfService
method is called to indicate
that the state of
the Provider object has changed to Provider.OUT_OF_SERVICE
.
a
- ProviderEvent with event ID ProviderEvent.PROVIDER_OUT_OF_SERVICE.public void providerShutdown(ProviderEvent event)
providerShutdown
method is called to indicate that the state of the
Provider object has changed to Provider.SHUTDOWN
.
a
- ProviderEvent with event ID ProviderEvent.PROVIDER_SHUTDOWN.
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |