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

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

public static final class VersionManagerImpl.DynamicESCFactory
extends Object
implements EventStateCollectionFactory


Constructor Summary
VersionManagerImpl.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.VersionManagerImpl.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

VersionManagerImpl.DynamicESCFactory

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

Parameters:
obsMgr -
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.VersionManagerImpl.SourcedTarget runnable)
                 throws RepositoryException
Executes the given runnable using the given event source.

Parameters:
eventSource -
runnable -
Throws:
RepositoryException


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