info.magnolia.context
Class SystemRepositoryStrategy

java.lang.Object
  extended by info.magnolia.context.AbstractRepositoryStrategy
      extended by info.magnolia.context.SystemRepositoryStrategy
All Implemented Interfaces:
JCRSessionStrategy

public class SystemRepositoryStrategy
extends AbstractRepositoryStrategy

Uses a single full access AccessManager. JCR sessions are only released if no event listener were registered.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.context.AbstractRepositoryStrategy
repositoryManager
 
Constructor Summary
SystemRepositoryStrategy(RepositoryManager repositoryManager)
           
 
Method Summary
protected  javax.jcr.Session internalGetSession(String workspaceName)
           
 void release()
           
 
Methods inherited from class info.magnolia.context.AbstractRepositoryStrategy
getLocalSessionCount, getSession, release, releaseSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemRepositoryStrategy

@Inject
public SystemRepositoryStrategy(RepositoryManager repositoryManager)
Method Detail

internalGetSession

protected javax.jcr.Session internalGetSession(String workspaceName)
                                        throws javax.jcr.RepositoryException
Specified by:
internalGetSession in class AbstractRepositoryStrategy
Throws:
javax.jcr.RepositoryException

release

public void release()


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.