|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedContext
Lifecycle management for built in contexts. ManagedContext
only
allows a context to be activated, deactivated and destroyed. It does not
allow the context to be associated with an underlying data store. These
operations are defined on BoundContext
.
Weld provides a number of managed contexts: SessionContext
,
ConversationContext
, RequestContext
. All these managed
contexts are scoped to the thread, and propagation of the backing store
between threads is the responsibility of the managed context user.
BoundContext
Method Summary | |
---|---|
void |
activate()
Activate the Context. |
void |
deactivate()
Deactivate the Context, destroying any instances if the context is invalid. |
void |
invalidate()
Mark the context as due for destruction when deactivate is called. |
Methods inherited from interface javax.enterprise.context.spi.Context |
---|
get, get, getScope, isActive |
Method Detail |
---|
void activate()
void deactivate()
void invalidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |