info.magnolia.context
Class JCRSessionPerThreadSystemContext

java.lang.Object
  extended by info.magnolia.context.AbstractContext
      extended by info.magnolia.context.AbstractSystemContext
          extended by info.magnolia.context.JCRSessionPerThreadSystemContext
All Implemented Interfaces:
SystemContext, ThreadDependentSystemContext, java.io.Serializable, java.util.Map, org.apache.commons.chain.Context

public class JCRSessionPerThreadSystemContext
extends AbstractSystemContext
implements ThreadDependentSystemContext

A system context which creates jcrs sessions per thread (request). The sessions are released but not if any event listener has been registerd on a session.

Version:
$Id: JCRSessionPerThreadSystemContext.java 32667 2010-03-13 00:37:06Z gjoseph $
Author:
philipp
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class info.magnolia.context.AbstractSystemContext
repositoryStrategyThreadLocal
 
Fields inherited from class info.magnolia.context.AbstractContext
locale
 
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
 
Constructor Summary
JCRSessionPerThreadSystemContext()
           
 
Method Summary
 RepositoryAcquiringStrategy getRepositoryStrategy()
           
 void releaseThread()
          Release all thread related stuff of the system context.
 
Methods inherited from class info.magnolia.context.AbstractSystemContext
getLocale, removeAttribute, setAttribute, setLocale
 
Methods inherited from class info.magnolia.context.AbstractContext
clear, containsKey, containsValue, entrySet, get, getAccessManager, getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getAttributeStrategy, getHierarchyManager, getHierarchyManager, getMessages, getMessages, getQueryManager, getQueryManager, 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.SystemContext
setLocale
 
Methods inherited from interface info.magnolia.context.Context
getAccessManager, getAccessManager, getAttribute, getAttribute, getAttributes, getAttributes, getHierarchyManager, getHierarchyManager, getLocale, getMessages, getMessages, getQueryManager, getQueryManager, 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
 

Constructor Detail

JCRSessionPerThreadSystemContext

public JCRSessionPerThreadSystemContext()
Method Detail

getRepositoryStrategy

public RepositoryAcquiringStrategy 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-2010 Magnolia International Ltd.. All Rights Reserved.