Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.sessions
Class SessionEventManager

java.lang.Object
  extended by oracle.toplink.sessions.SessionEventManager
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

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

Constructor Summary
SessionEventManager(Session session)
          Create a new session event manager for a session
 
Method Summary
 void addListener(SessionEventListener listener)
          Add the event listener to the session.
 java.util.Vector getListeners()
          The event listners will receive all events raised by this session.
 boolean hasListeners()
          Check if there are any event listeners.
 void removeListener(SessionEventListener listener)
          Remove the event listener from the session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionEventManager

public SessionEventManager(Session session)
Create a new session event manager for a session

Method Detail

addListener

public void addListener(SessionEventListener listener)
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()
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()
Check if there are any event listeners.


removeListener

public void removeListener(SessionEventListener listener)
Remove the event listener from the session.


Copyright © 1998, 2012, Oracle. All Rights Reserved.