Class AbstractSessionBeanStore
java.lang.Object
org.jboss.weld.contexts.beanstore.AttributeBeanStore
org.jboss.weld.module.web.context.beanstore.http.AbstractSessionBeanStore
- All Implemented Interfaces:
Iterable<org.jboss.weld.serialization.spi.BeanIdentifier>,BeanStore,BoundBeanStore
- Direct Known Subclasses:
EagerSessionBeanStore,LazySessionBeanStore
Base class providing an HttpSession backed, bound bean store.
- Author:
- Pete Muir, David Allen, Nicklas Karlsson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSessionBeanStore(NamingScheme namingScheme, boolean attributeLazyFetchingEnabled, org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry) -
Method Summary
Modifier and TypeMethodDescription<T> org.jboss.weld.context.api.ContextualInstance<T>get(org.jboss.weld.serialization.spi.BeanIdentifier id) protected ObjectgetAttribute(String prefixedId) protected LockStoreprotected abstract jakarta.servlet.http.HttpSessiongetSession(boolean create) protected voidremoveAttribute(String key) protected voidsetAttribute(String key, Object instance) Methods 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
-
AbstractSessionBeanStore
public AbstractSessionBeanStore(NamingScheme namingScheme, boolean attributeLazyFetchingEnabled, org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry) - Parameters:
namingScheme-attributeLazyFetchingEnabled-
-
-
Method Details
-
getSession
protected abstract jakarta.servlet.http.HttpSession getSession(boolean create) -
getAttributeNames
- Specified by:
getAttributeNamesin classAttributeBeanStore
-
removeAttribute
- Specified by:
removeAttributein classAttributeBeanStore
-
setAttribute
- Specified by:
setAttributein classAttributeBeanStore
-
get
public <T> org.jboss.weld.context.api.ContextualInstance<T> get(org.jboss.weld.serialization.spi.BeanIdentifier id) - Specified by:
getin interfaceBeanStore- Overrides:
getin classAttributeBeanStore
-
getAttribute
- Specified by:
getAttributein classAttributeBeanStore
-
getLockStore
- Specified by:
getLockStorein classAttributeBeanStore
-