info.magnolia.context
Class JCRSessionPerThreadSystemContext
java.lang.Object
info.magnolia.context.AbstractContext
info.magnolia.context.AbstractSystemContext
info.magnolia.context.JCRSessionPerThreadSystemContext
- All Implemented Interfaces:
- SystemContext, ThreadDependentSystemContext, Serializable, Map, org.apache.commons.chain.Context
@Singleton
public class JCRSessionPerThreadSystemContext
- extends AbstractSystemContext
- implements ThreadDependentSystemContext
A system context which creates JCR sessions per thread (request). The sessions are released but not if any event
listener has been registered on a session.
- Version:
- $Id: JCRSessionPerThreadSystemContext.java 51084 2011-11-09 07:57:47Z dlipp $
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from interface info.magnolia.context.Context |
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE |
Methods inherited from class info.magnolia.context.AbstractContext |
clear, containsKey, containsValue, entrySet, get, getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getAttributeStrategy, getHierarchyManager, getJCRSession, getMessages, getMessages, getQueryManager, getSubject, getUser, isEmpty, keySet, put, putAll, release, remove, removeAttribute, setAttributeStrategy, setRepositoryStrategy, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.context.Context |
getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getHierarchyManager, getJCRSession, getLocale, getMessages, getMessages, getQueryManager, getSubject, getUser, release, removeAttribute, setAttribute |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
JCRSessionPerThreadSystemContext
public JCRSessionPerThreadSystemContext()
getRepositoryStrategy
public JCRSessionStrategy getRepositoryStrategy()
- Overrides:
getRepositoryStrategy
in class AbstractContext
releaseThread
public void releaseThread()
- Description copied from interface:
ThreadDependentSystemContext
- Release all thread related stuff of the system context.
- Specified by:
releaseThread
in interface ThreadDependentSystemContext
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.