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(HttpServletRequest request,
NamingScheme namingScheme) |
LazySessionBeanStore(HttpServletRequest request,
NamingScheme namingScheme,
boolean attributeLazyFetchingEnabled) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpSession |
getSession(boolean create) |
protected HttpSession |
getSessionIfExists()
Get the session, create equals false;
|
get, getAttribute, getAttributeNames, getLockStore, removeAttribute, setAttributeattach, clear, contains, detach, fetchUninitializedAttributes, getNamingScheme, getPrefixedAttributeNames, isAttached, isAttributeLazyFetchingEnabled, isLocalBeanStoreSyncNeeded, iterator, lock, put, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LazySessionBeanStore(HttpServletRequest request,
NamingScheme namingScheme)
request - namingScheme - public LazySessionBeanStore(HttpServletRequest request,
NamingScheme namingScheme,
boolean attributeLazyFetchingEnabled)
request - namingScheme - attributeLazyFetchingEnabled - protected HttpSession getSessionIfExists()
protected HttpSession getSession(boolean create)
getSession in class AbstractSessionBeanStoreCopyright © 2017. All rights reserved.