|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.telephony.media.provider.Base_Owner
A class that owns an EventQueue, and is an MPI.Owner to DispatchableEvents. Implements the basic structures to manage the EventQueue and dispatch events.
Method Summary | |
void |
addListener(java.util.EventListener listener)
Add EventListener to this object's EventQueue. |
void |
onEventDone(Base.Event event)
To be a Base.Event "source" you must be an Owner. |
void |
removeListener(java.util.EventListener listener)
Remove EventListener from this object's EventQueue. |
void |
setExceptionHandler(Dispatcher.ExceptionHandler handler)
Set a Dispatcher.ExceptionHandler for this Owner/Source. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setExceptionHandler(Dispatcher.ExceptionHandler handler)
public void addListener(java.util.EventListener listener)
listener
- the EventListener to be addedpublic void removeListener(java.util.EventListener listener)
listener
- the EventListener to be removedpublic void onEventDone(Base.Event event)
Implements MPI.Owner
The vendor's implementation notifies this MPI.Owner that some Async.Event has completed. This Owner must deliver the event to the application, invoking the various Listeners.
This MPI.Owner implementation uses the the EventQueue and Dispatcher in this package; which assume that the Async.Event implements Dispatcher.DispatchableEvent; so the event knows how to recognize and invoke its own Listener and Callback method.
Note:We would rather this was not a public method, but the Java interface allows only public methods. If an application Listener were to invoke this, it would make a nice infinite loop...
onEventDone
in interface MPI.Owner
event
- a done Event that will be queued for dispatch
to application Listeners.
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |