public class BoundRequestContextImpl extends AbstractBoundContext<java.util.Map<java.lang.String,java.lang.Object>> implements BoundRequestContext
Constructor and Description |
---|
BoundRequestContextImpl(java.lang.String contextId) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate the Context.
|
boolean |
associate(java.util.Map<java.lang.String,java.lang.Object> storage)
Associate the context with the storage (for this thread).
|
void |
deactivate()
Deactivate the Context, destroying any instances if the context is invalid.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Get the scope type of the context object.
|
void |
invalidate()
Mark the context as due for destruction when deactivate is called.
|
cleanup, dissociate, getBeanStore, setBeanStore
isActive, isValid, setActive
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy
dissociate
public BoundRequestContextImpl(java.lang.String contextId)
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Context
public boolean associate(java.util.Map<java.lang.String,java.lang.Object> storage)
BoundContext
BoundContext.associate(Object)
has been called, further calls
to BoundContext.associate(Object)
will be ignored, until the context has been subsequently BoundContext.dissociate(Object)
from
the storage.associate
in interface BoundContext<java.util.Map<java.lang.String,java.lang.Object>>
storage
- the external storagepublic void activate()
ManagedContext
activate
in interface ManagedContext
activate
in class AbstractBoundContext<java.util.Map<java.lang.String,java.lang.Object>>
public void deactivate()
ManagedContext
deactivate
in interface ManagedContext
deactivate
in class AbstractBoundContext<java.util.Map<java.lang.String,java.lang.Object>>
public void invalidate()
ManagedContext
invalidate
in interface ManagedContext
invalidate
in class AbstractManagedContext
Copyright © 2014. All Rights Reserved.