org.jboss.weld.context.beanstore.http
Class EagerSessionBeanStore

java.lang.Object
  extended by org.jboss.weld.context.beanstore.AttributeBeanStore
      extended by org.jboss.weld.context.beanstore.http.AbstractSessionBeanStore
          extended by org.jboss.weld.context.beanstore.http.EagerSessionBeanStore
All Implemented Interfaces:
Iterable<String>, BeanStore, BoundBeanStore

public class EagerSessionBeanStore
extends AbstractSessionBeanStore

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:
Nicklas Karlsson, David Allen, Pete Muir
See Also:
LazySessionBeanStore

Constructor Summary
EagerSessionBeanStore(NamingScheme namingScheme, javax.servlet.http.HttpSession session)
           
 
Method Summary
protected  javax.servlet.http.HttpSession getSession(boolean create)
           
 
Methods inherited from class org.jboss.weld.context.beanstore.http.AbstractSessionBeanStore
get, getAttribute, getAttributeNames, getLockStore, removeAttribute, setAttribute
 
Methods inherited from class org.jboss.weld.context.beanstore.AttributeBeanStore
attach, clear, contains, detach, getNamingScheme, getPrefixedAttributeNames, isAttached, iterator, lock, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EagerSessionBeanStore

public EagerSessionBeanStore(NamingScheme namingScheme,
                             javax.servlet.http.HttpSession session)
Method Detail

getSession

protected javax.servlet.http.HttpSession getSession(boolean create)
Specified by:
getSession in class AbstractSessionBeanStore


Copyright © 2013 Seam Framework. All Rights Reserved.