org.apache.jackrabbit.core.observation
Class DelegatingObservationDispatcher

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

public class DelegatingObservationDispatcher
extends org.apache.jackrabbit.core.observation.EventDispatcher

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
 EventStateCollection createEventStateCollection(SessionImpl session, Path pathPrefix)
          Creates an EventStateCollection tied to the session given as argument.
 void dispatch(List eventList, SessionImpl session, Path pathPrefix)
          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 -

createEventStateCollection

public EventStateCollection createEventStateCollection(SessionImpl session,
                                                       Path pathPrefix)
Creates an EventStateCollection tied to the session given as argument.

Parameters:
session - event source
Returns:
new EventStateCollection instance

dispatch

public void dispatch(List eventList,
                     SessionImpl session,
                     Path pathPrefix)
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 -


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