public abstract class AbstractRepositoryStrategy extends Object implements JCRSessionStrategy
RepositoryAcquiringStrategy
providing storage of JCR sessions and hierarchy manager instances to extending classes.Modifier and Type | Field and Description |
---|---|
protected RepositoryManager |
repositoryManager |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRepositoryStrategy(RepositoryManager repositoryManager) |
Modifier and Type | Method and Description |
---|---|
protected int |
getLocalSessionCount()
Returns the number of sessions managed by this strategy.
|
javax.jcr.Session |
getSession(String workspaceName) |
protected abstract javax.jcr.Session |
internalGetSession(String workspaceName) |
protected void |
release(boolean checkObservation) |
protected void |
releaseSession(javax.jcr.Session session,
boolean checkObservation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
protected final RepositoryManager repositoryManager
@Inject protected AbstractRepositoryStrategy(RepositoryManager repositoryManager)
public javax.jcr.Session getSession(String workspaceName) throws javax.jcr.LoginException, javax.jcr.RepositoryException
getSession
in interface JCRSessionStrategy
javax.jcr.LoginException
javax.jcr.RepositoryException
protected abstract javax.jcr.Session internalGetSession(String workspaceName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void release(boolean checkObservation)
protected void releaseSession(javax.jcr.Session session, boolean checkObservation)
protected int getLocalSessionCount()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.