Class RequestBeanStore
- java.lang.Object
-
- org.jboss.weld.contexts.beanstore.AttributeBeanStore
-
- org.jboss.weld.module.web.context.beanstore.http.RequestBeanStore
-
- All Implemented Interfaces:
Iterable<org.jboss.weld.serialization.spi.BeanIdentifier>,BeanStore,BoundBeanStore
public class RequestBeanStore extends AttributeBeanStore
A BeanStore that uses a HTTP request as backing storage.
This class is not threadsafe
- Author:
- Nicklas Karlsson, David Allen, Pete Muir
-
-
Constructor Summary
Constructors Constructor Description RequestBeanStore(jakarta.servlet.http.HttpServletRequest request, NamingScheme namingScheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetAttribute(String key)protected Iterator<String>getAttributeNames()LockStoregetLockStore()jakarta.servlet.http.HttpServletRequestgetRequest()protected booleanisLocalBeanStoreSyncNeeded()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, get, getNamingScheme, getPrefixedAttributeNames, isAttached, isAttributeLazyFetchingEnabled, 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
-
RequestBeanStore
public RequestBeanStore(jakarta.servlet.http.HttpServletRequest request, NamingScheme namingScheme)
-
-
Method Detail
-
getAttribute
protected Object getAttribute(String key)
- Specified by:
getAttributein classAttributeBeanStore
-
removeAttribute
protected void removeAttribute(String key)
- Specified by:
removeAttributein classAttributeBeanStore
-
getAttributeNames
protected Iterator<String> getAttributeNames()
- Specified by:
getAttributeNamesin classAttributeBeanStore
-
setAttribute
protected void setAttribute(String key, Object instance)
- Specified by:
setAttributein classAttributeBeanStore
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest()
-
getLockStore
public LockStore getLockStore()
- Specified by:
getLockStorein classAttributeBeanStore
-
isLocalBeanStoreSyncNeeded
protected boolean isLocalBeanStoreSyncNeeded()
- Overrides:
isLocalBeanStoreSyncNeededin classAttributeBeanStore
-
-