org.jboss.weld.context.SessionContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-servlet-shaded Show documentation
Show all versions of weld-servlet-shaded Show documentation
This jar bundles all the bits of Weld and CDI required for running in a Servlet container.
package org.jboss.weld.context;
import java.util.Map;
import javax.enterprise.context.SessionScoped;
import javax.servlet.http.HttpSession;
import org.jboss.weld.context.bound.BoundSessionContext;
import org.jboss.weld.context.http.HttpSessionContext;
/**
*
* The built in session context is associated with {@link SessionScoped}. It can be activated, invalidated and deactivated.
*
*
*
* Weld comes with two implementation of the session context. The {@link HttpSessionContext}, in which conversations are bound
* to the {@link HttpSession}, can be injected:
*
*
*
* @ Inject @ Http SessionContext sessionContext;
*
*
*
* Alternatively the {@link BoundSessionContext} in which conversations are bound a {@link Map} can be injected:
*
*
*
* @ Inject @ Bound SessionContext sessionContext;
*
*
* @author Pete Muir
* @see org.jboss.weld.context.bound.BoundSessionContext
* @see javax.servlet.http.HttpSession
* @see javax.enterprise.context.SessionScoped
*
*/
public interface SessionContext extends ManagedContext {
}