info.magnolia.context
Class AbstractRepositoryStrategy
java.lang.Object
info.magnolia.context.AbstractRepositoryStrategy
- All Implemented Interfaces:
- JCRSessionStrategy
- Direct Known Subclasses:
- DefaultRepositoryStrategy, SystemRepositoryStrategy
public abstract class AbstractRepositoryStrategy
- extends Object
- implements JCRSessionStrategy
Basic implementation of the RepositoryAcquiringStrategy
providing storage of JCR sessions and hierarchy manager instances to extending classes.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
repositoryManager
protected final RepositoryManager repositoryManager
AbstractRepositoryStrategy
@Inject
protected AbstractRepositoryStrategy(RepositoryManager repositoryManager)
getSession
public javax.jcr.Session getSession(String workspaceName)
throws javax.jcr.LoginException,
javax.jcr.RepositoryException
- Specified by:
getSession
in interface JCRSessionStrategy
- Throws:
javax.jcr.LoginException
javax.jcr.RepositoryException
internalGetSession
protected abstract javax.jcr.Session internalGetSession(String workspaceName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
release
protected void release(boolean checkObservation)
releaseSession
protected void releaseSession(javax.jcr.Session session,
boolean checkObservation)
getLocalSessionCount
protected int getLocalSessionCount()
- Returns the number of sessions managed by this strategy.
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.