org.apache.jackrabbit.core.observation
Class ObservationManagerImpl

java.lang.Object
  extended byorg.apache.jackrabbit.core.observation.ObservationManagerImpl
All Implemented Interfaces:
ObservationManager

public class ObservationManagerImpl
extends Object
implements ObservationManager

Each Session instance has its own ObservationManager instance. The class SessionLocalObservationManager implements this behaviour.


Method Summary
 void addEventListener(EventListener listener, int eventTypes, String absPath, boolean isDeep, String[] uuid, String[] nodeTypeName, boolean noLocal)
          
 EventStateCollection createEventStateCollection()
          Creates an EventStateCollection tied to the session which is attached this ObservationManager instance.
 void dispose()
          Unregisters all EventListeners.
 EventListenerIterator getRegisteredEventListeners()
          
 void removeEventListener(EventListener listener)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addEventListener

public void addEventListener(EventListener listener,
                             int eventTypes,
                             String absPath,
                             boolean isDeep,
                             String[] uuid,
                             String[] nodeTypeName,
                             boolean noLocal)
                      throws RepositoryException

Specified by:
addEventListener in interface ObservationManager
Throws:
RepositoryException

removeEventListener

public void removeEventListener(EventListener listener)
                         throws RepositoryException

Specified by:
removeEventListener in interface ObservationManager
Throws:
RepositoryException

getRegisteredEventListeners

public EventListenerIterator getRegisteredEventListeners()
                                                  throws RepositoryException

Specified by:
getRegisteredEventListeners in interface ObservationManager
Throws:
RepositoryException

createEventStateCollection

public EventStateCollection createEventStateCollection()
Creates an EventStateCollection tied to the session which is attached this ObservationManager instance.

Returns:
a new EventStateCollection.

dispose

public void dispose()
Unregisters all EventListeners.



Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.