org.apache.jackrabbit.core.observation
Class DelegatingObservationDispatcher

java.lang.Object
  extended byorg.apache.jackrabbit.core.observation.DelegatingObservationDispatcher

public class DelegatingObservationDispatcher
extends Object

This Class implements an observation dispatcher, that delegates events to a set of underlying dispatchers.


Constructor Summary
DelegatingObservationDispatcher()
           
 
Method Summary
 void addDispatcher(ObservationManagerFactory disp)
          Adds a new observation factory to the set of dispatchers
 void dispatch(List eventList, SessionImpl session)
          Dispatchers a list of events to all registered dispatchers.
 void removeDispatcher(ObservationManagerFactory disp)
          Removes a observation factory from the set of dispatchers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingObservationDispatcher

public DelegatingObservationDispatcher()
Method Detail

addDispatcher

public void addDispatcher(ObservationManagerFactory disp)
Adds a new observation factory to the set of dispatchers

Parameters:
disp -

removeDispatcher

public void removeDispatcher(ObservationManagerFactory disp)
Removes a observation factory from the set of dispatchers

Parameters:
disp -

dispatch

public void dispatch(List eventList,
                     SessionImpl session)
              throws RepositoryException
Dispatchers a list of events to all registered dispatchers. A new EventStateCollection is created for every dispatcher, fille with the given event list and then dispatched.

Parameters:
eventList -
session -
Throws:
RepositoryException


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