Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.context.beanstore.http;
 
 import  javax.servlet.http.HttpSession;
 

A BeanStore that uses a HTTP session as backing storage. This bean store is automatically attached when created.

This bean store is backed by an HttpSession directly. If you want a bean store that only requires session creation when an instance must be written, use LazySessionBeanStore.

This class is not threadsafe

Author(s):
Nicklas Karlsson
David Allen
Pete Muir
See also:
LazySessionBeanStore
    private final HttpSession session;
    public EagerSessionBeanStore(NamingScheme namingScheme, HttpSession session) {
        super(namingScheme);
        this. = session;
    }
    @Override
    protected HttpSession getSession(boolean create) {
        return ;
    }
New to GrepCode? Check out our FAQ X