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
public abstract class AbstractSessionBeanStore extends AttributeBeanStore
Base class providing an HttpSession backed, bound bean store.- Author:
- Pete Muir, David Allen, Nicklas Karlsson
- See Also:
LazySessionBeanStore,EagerSessionBeanStore
-
-
Constructor Summary
Constructors Constructor Description AbstractSessionBeanStore(NamingScheme namingScheme, boolean attributeLazyFetchingEnabled, org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> org.jboss.weld.context.api.ContextualInstance<T>get(org.jboss.weld.serialization.spi.BeanIdentifier id)protected ObjectgetAttribute(String prefixedId)protected Iterator<String>getAttributeNames()protected LockStoregetLockStore()protected 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, remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
AbstractSessionBeanStore
public AbstractSessionBeanStore(NamingScheme namingScheme, boolean attributeLazyFetchingEnabled, org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry)
- Parameters:
namingScheme-attributeLazyFetchingEnabled-
-
-
Method Detail
-
getSession
protected abstract jakarta.servlet.http.HttpSession getSession(boolean create)
-
getAttributeNames
protected Iterator<String> getAttributeNames()
- Specified by:
getAttributeNamesin classAttributeBeanStore
-
removeAttribute
protected void removeAttribute(String key)
- Specified by:
removeAttributein classAttributeBeanStore
-
setAttribute
protected void setAttribute(String key, Object instance)
- 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
protected Object getAttribute(String prefixedId)
- Specified by:
getAttributein classAttributeBeanStore
-
getLockStore
protected LockStore getLockStore()
- Specified by:
getLockStorein classAttributeBeanStore
-
-