org.apache.jackrabbit.core.version
Class InternalVersionManagerImpl.DynamicESCFactory

java.lang.Object
  extended by org.apache.jackrabbit.core.version.InternalVersionManagerImpl.DynamicESCFactory
All Implemented Interfaces:
EventStateCollectionFactory
Enclosing class:
InternalVersionManagerImpl

public static final class InternalVersionManagerImpl.DynamicESCFactory
extends Object
implements EventStateCollectionFactory


Constructor Summary
InternalVersionManagerImpl.DynamicESCFactory(DelegatingObservationDispatcher obsMgr)
          Creates a new event state collection factory
 
Method Summary
 EventStateCollection createEventStateCollection()
          Creates an EventStateCollection.
 EventStateCollection createEventStateCollection(SessionImpl source)
          

This object uses one instance of a LocalItemStateManager to update data on behalf of many sessions.

 Object doSourced(SessionImpl eventSource, org.apache.jackrabbit.core.version.InternalVersionManagerImpl.SourcedTarget runnable)
          Executes the given runnable using the given event source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalVersionManagerImpl.DynamicESCFactory

public InternalVersionManagerImpl.DynamicESCFactory(DelegatingObservationDispatcher obsMgr)
Creates a new event state collection factory

Parameters:
obsMgr - dispatcher
Method Detail

createEventStateCollection

public EventStateCollection createEventStateCollection()
                                                throws RepositoryException
Creates an EventStateCollection.

This object uses one instance of a LocalItemStateManager to update data on behalf of many sessions. In order to maintain the association between update operation and session who actually invoked the update, an internal event source is used.

Specified by:
createEventStateCollection in interface EventStateCollectionFactory
Returns:
a new EventStateCollection
Throws:
RepositoryException - if creation fails for some reason

createEventStateCollection

public EventStateCollection createEventStateCollection(SessionImpl source)

This object uses one instance of a LocalItemStateManager to update data on behalf of many sessions. In order to maintain the association between update operation and session who actually invoked the update, an internal event source is used.


doSourced

public Object doSourced(SessionImpl eventSource,
                        org.apache.jackrabbit.core.version.InternalVersionManagerImpl.SourcedTarget runnable)
                 throws RepositoryException
Executes the given runnable using the given event source.

Parameters:
eventSource - event source
runnable - the runnable to execute
Returns:
the return value of the executed runnable
Throws:
RepositoryException - if an error occurs


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