oracle.toplink.sessions
Class SessionEventManager
java.lang.Object
|
+--oracle.toplink.sessions.SessionEventManager
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class SessionEventManager
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
Purpose: Used to support session events.
To register for events notification an event listener must be registered with the session.
- See Also:
Session.getEventManager()
,
SessionEvent
, Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionEventManager
public SessionEventManager(Session session)
- PUBLIC:
Create a new session event manager for a session
addListener
public void addListener(SessionEventListener listener)
- PUBLIC:
Add the event listener to the session.
The listner will receive all events raised by this session.
Also unit of works acquire from this session will inherit the listenrs.
getListeners
public java.util.Vector getListeners()
- PUBLIC:
The event listners will receive all events raised by this session.
Also unit of works acquire from this session will inherit the listenrs.
hasListeners
public boolean hasListeners()
- PUBLIC:
Check if there are any event listeners.
removeListener
public void removeListener(SessionEventListener listener)
- PUBLIC:
Remove the event listener from the session.