Class SessionContext
- java.lang.Object
-
- org.exoplatform.container.context.AbstractContext<K>
-
- org.exoplatform.container.context.SharedContext<javax.servlet.http.HttpSession>
-
- org.exoplatform.container.context.SessionContext
-
- All Implemented Interfaces:
javax.enterprise.context.spi.Context,ThreadContextHolder,AdvancedContext<javax.servlet.http.HttpSession>
public class SessionContext extends SharedContext<javax.servlet.http.HttpSession>
The context that represents theSessionScoped. The key used is the id of the session.- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.exoplatform.container.context.AbstractContext
AbstractContext.ThreadLocalData
-
-
Field Summary
-
Fields inherited from interface org.exoplatform.container.component.ThreadContextHolder
MANAGE_THREAD_LOCAL
-
-
Constructor Summary
Constructors Constructor Description SessionContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CreationContextStoragecreateStorage(javax.servlet.http.HttpSession key)Creates aCreationContextStorageinstance from the given keyClass<? extends Annotation>getScope()-
Methods inherited from class org.exoplatform.container.context.SharedContext
getLock, isSharable
-
Methods inherited from class org.exoplatform.container.context.AbstractContext
activate, deactivate, destroy, destroy, destroy, get, get, getFromCache, getId, getInstance, getStorage, getThreadContext, isActive, putInCache, register, setStorage, unregister
-
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
-
createStorage
protected CreationContextStorage createStorage(javax.servlet.http.HttpSession key)
Creates aCreationContextStorageinstance from the given key- Specified by:
createStoragein classAbstractContext<javax.servlet.http.HttpSession>- Parameters:
key- the key to use to create theCreationContextStorage- Returns:
- the
CreationContextStoragecorresponding to the given key
-
-