org.jboss.weld.context.beanstore.http
Class LazySessionBeanStore
java.lang.Object
org.jboss.weld.context.beanstore.AttributeBeanStore
org.jboss.weld.context.beanstore.http.AbstractSessionBeanStore
org.jboss.weld.context.beanstore.http.LazySessionBeanStore
- All Implemented Interfaces:
- Iterable<String>, BeanStore, BoundBeanStore
- Direct Known Subclasses:
- LazyCyclicSessionBeanStore
public class LazySessionBeanStore
- extends AbstractSessionBeanStore
A BeanStore that uses a HTTP session as backing storage.
Unlike EagerSessionBeanStore
, this bean store is backed by an
HttpRequest, and only requires the session to be created when it needs to
write an instance to it.
This class is not threadsafe
- Author:
- Nicklas Karlsson, David Allen, Pete Muir, Ales Justin
- See Also:
EagerSessionBeanStore
Method Summary |
protected javax.servlet.http.HttpSession |
getSession(boolean create)
|
protected javax.servlet.http.HttpSession |
getSessionIfExists()
Get the session, create equals false; |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazySessionBeanStore
public LazySessionBeanStore(javax.servlet.http.HttpServletRequest request,
NamingScheme namingScheme)
getSessionIfExists
protected javax.servlet.http.HttpSession getSessionIfExists()
- Get the session, create equals false;
- Returns:
- http session or null if no such session exists
getSession
protected javax.servlet.http.HttpSession getSession(boolean create)
- Specified by:
getSession
in class AbstractSessionBeanStore
Copyright © 2013 Seam Framework. All Rights Reserved.