Package org.jboss.weld.context
Interface SessionContext
- All Superinterfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,ManagedContext,WeldAlterableContext
- All Known Subinterfaces:
BoundSessionContext,HttpSessionContext
The built in session context is associated with SessionScoped. It can be activated, invalidated and deactivated.
Weld comes with two implementation of the session context. The HttpSessionContext, in which conversations are bound
to the HttpSession, can be injected:
@Inject @Http SessionContext sessionContext;
Alternatively the BoundSessionContext in which conversations are bound a Map can be injected:
@Inject @Bound SessionContext sessionContext;
- Author:
- Pete Muir
- See Also:
-
BoundSessionContextHttpSessionSessionScoped
-
Method Summary
Methods inherited from interface jakarta.enterprise.context.spi.AlterableContext
destroyMethods inherited from interface jakarta.enterprise.context.spi.Context
get, get, getScope, isActiveMethods inherited from interface org.jboss.weld.context.ManagedContext
activate, deactivate, invalidateMethods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances