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
EagerSessionBeanStore
Constructor and Description |
---|
LazySessionBeanStore(javax.servlet.http.HttpServletRequest request,
NamingScheme namingScheme) |
Modifier and Type | Method and Description |
---|---|
protected javax.servlet.http.HttpSession |
getSession(boolean create) |
protected javax.servlet.http.HttpSession |
getSessionIfExists()
Get the session, create equals false;
|
get, getAttribute, getAttributeNames, getLockStore, removeAttribute, setAttribute
attach, clear, contains, detach, getNamingScheme, getPrefixedAttributeNames, isAttached, iterator, lock, put, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public LazySessionBeanStore(javax.servlet.http.HttpServletRequest request, NamingScheme namingScheme)
protected javax.servlet.http.HttpSession getSessionIfExists()
protected javax.servlet.http.HttpSession getSession(boolean create)
getSession
in class AbstractSessionBeanStore
Copyright © 2016. All rights reserved.