org.apache.jackrabbit.core.observation
Class ObservationManagerFactory

java.lang.Object
  extended byorg.apache.jackrabbit.core.observation.EventDispatcher
      extended byorg.apache.jackrabbit.core.observation.ObservationManagerFactory
All Implemented Interfaces:
Runnable

public final class ObservationManagerFactory
extends org.apache.jackrabbit.core.observation.EventDispatcher
implements Runnable

The class ObservationManagerFactory creates new ObservationManager instances for sessions. It also creates new EventStateCollections that can be dispatched to registered EventListeners.


Constructor Summary
ObservationManagerFactory()
          Creates a new ObservationManagerFactory instance and starts the notification thread deamon.
 
Method Summary
 ObservationManagerImpl createObservationManager(SessionImpl session, ItemManager itemMgr)
          Creates a new session local ObservationManager with an associated NamespaceResolver.
 void dispose()
          Disposes this ObservationManager.
 void run()
          Implements the run method of the background notification thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservationManagerFactory

public ObservationManagerFactory()
Creates a new ObservationManagerFactory instance and starts the notification thread deamon.

Method Detail

dispose

public void dispose()
Disposes this ObservationManager. This will effectively stop the background notification thread.


createObservationManager

public ObservationManagerImpl createObservationManager(SessionImpl session,
                                                       ItemManager itemMgr)
Creates a new session local ObservationManager with an associated NamespaceResolver.

Parameters:
session - the session.
itemMgr - the ItemManager of the session.
Returns:
an ObservationManager.

run

public void run()
Implements the run method of the background notification thread.

Specified by:
run in interface Runnable


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