Package org.jboss.weld.contexts.bound
Class BoundSessionContextImpl
- java.lang.Object
-
- org.jboss.weld.contexts.AbstractContext
-
- org.jboss.weld.contexts.AbstractManagedContext
-
- org.jboss.weld.contexts.AbstractBoundContext<Map<String,Object>>
-
- org.jboss.weld.contexts.bound.BoundSessionContextImpl
-
- All Implemented Interfaces:
AlterableContext,Context,BoundSessionContext,BoundContext<Map<String,Object>>,ManagedContext,SessionContext,WeldAlterableContext
public class BoundSessionContextImpl extends AbstractBoundContext<Map<String,Object>> implements BoundSessionContext
-
-
Constructor Summary
Constructors Constructor Description BoundSessionContextImpl(String contextId, BeanIdentifierIndex index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanassociate(Map<String,Object> storage)Associate the context with the storage (for this thread).Class<? extends Annotation>getScope()Get the scope type of the context object.-
Methods inherited from class org.jboss.weld.contexts.AbstractBoundContext
activate, cleanup, clearAndSet, deactivate, dissociate, getAllContextualInstances, getBeanStore, setBeanStore
-
Methods inherited from class org.jboss.weld.contexts.AbstractManagedContext
invalidate, isActive, isValid, removeState, setActive
-
Methods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreaded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.enterprise.context.spi.AlterableContext
destroy
-
Methods inherited from interface org.jboss.weld.context.BoundContext
dissociate
-
Methods inherited from interface org.jboss.weld.context.ManagedContext
activate, deactivate, invalidate
-
Methods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
-
-
-
Constructor Detail
-
BoundSessionContextImpl
public BoundSessionContextImpl(String contextId, BeanIdentifierIndex index)
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
Description copied from interface:ContextGet the scope type of the context object.
-
associate
public boolean associate(Map<String,Object> storage)
Description copied from interface:BoundContextAssociate the context with the storage (for this thread). OnceBoundContext.associate(Object)has been called, further calls toBoundContext.associate(Object)will be ignored, until the context has been subsequentlyBoundContext.dissociate(Object)from the storage.- Specified by:
associatein interfaceBoundContext<Map<String,Object>>- Parameters:
storage- the external storage- Returns:
- true if the storage was attached, otherwise false
-
-