Package com.arjuna.orbportability.event
Class EventManager
java.lang.Object
com.arjuna.orbportability.event.EventManager
The current implementation will invoke all registered handlers
whenever an object is connected and disconnected. These handlers
can then determine whether they want to do anything about it by
checking the type of the object (using narrow).
- Since:
- JTS 2.1.
- Version:
- $Id: EventManager.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add the specified handler.void
connected
(org.omg.CORBA.Object obj) The object has been connected to the ORB.void
disconnected
(org.omg.CORBA.Object obj) The object has been disconnected from the ORB.static EventManager
boolean
Remove the specified handler.
-
Constructor Details
-
EventManager
protected EventManager()
-
-
Method Details
-
connected
public void connected(org.omg.CORBA.Object obj) The object has been connected to the ORB. -
disconnected
public void disconnected(org.omg.CORBA.Object obj) The object has been disconnected from the ORB. -
addHandler
Add the specified handler. If the handler has already been registered then this operation will fail. -
removeHandler
Remove the specified handler. If the handler has not been registered then this operation will fail. -
getManager
- Returns:
- the EventManager instance.
-