Class EagerSessionBeanStore
java.lang.Object
org.jboss.weld.contexts.beanstore.AttributeBeanStore
org.jboss.weld.module.web.context.beanstore.http.AbstractSessionBeanStore
org.jboss.weld.module.web.context.beanstore.http.EagerSessionBeanStore
- All Implemented Interfaces:
Iterable<org.jboss.weld.serialization.spi.BeanIdentifier>,BeanStore,BoundBeanStore
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:
-
Constructor Summary
ConstructorsConstructorDescriptionEagerSessionBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpSession session, org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.servlet.http.HttpSessiongetSession(boolean create) Methods inherited from class org.jboss.weld.module.web.context.beanstore.http.AbstractSessionBeanStore
get, getAttribute, getAttributeNames, getLockStore, removeAttribute, setAttributeMethods inherited from class org.jboss.weld.contexts.beanstore.AttributeBeanStore
attach, clear, contains, detach, fetchUninitializedAttributes, getNamingScheme, getPrefixedAttributeNames, isAttached, isAttributeLazyFetchingEnabled, isLocalBeanStoreSyncNeeded, iterator, lock, put, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EagerSessionBeanStore
public EagerSessionBeanStore(NamingScheme namingScheme, jakarta.servlet.http.HttpSession session, org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry)
-
-
Method Details
-
getSession
protected jakarta.servlet.http.HttpSession getSession(boolean create) - Specified by:
getSessionin classAbstractSessionBeanStore
-