Class MapBeanStore
- java.lang.Object
-
- org.jboss.weld.contexts.beanstore.AttributeBeanStore
-
- org.jboss.weld.contexts.beanstore.MapBeanStore
-
- All Implemented Interfaces:
Iterable<org.jboss.weld.serialization.spi.BeanIdentifier>
,BeanStore
,BoundBeanStore
- Direct Known Subclasses:
SessionMapBeanStore
public class MapBeanStore extends AttributeBeanStore
-
-
Constructor Summary
Constructors Constructor Description MapBeanStore(NamingScheme namingScheme, Map<String,Object> delegate)
MapBeanStore(NamingScheme namingScheme, Map<String,Object> delegate, boolean safeIteration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
getAttribute(String prefixedId)
Gets an attribute from the underlying storageprotected Iterator<String>
getAttributeNames()
Gets an enumeration of the attribute names present in the underlying storage.LockStore
getLockStore()
protected void
removeAttribute(String prefixedId)
Removes an attribute from the underlying storageprotected void
setAttribute(String prefixedId, Object instance)
Sets an instance under a key in the underlying storage-
Methods inherited from class org.jboss.weld.contexts.beanstore.AttributeBeanStore
attach, clear, contains, detach, fetchUninitializedAttributes, get, 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
-
-
-
-
Field Detail
-
lockStore
protected transient volatile LockStore lockStore
-
-
Constructor Detail
-
MapBeanStore
public MapBeanStore(NamingScheme namingScheme, Map<String,Object> delegate)
-
MapBeanStore
public MapBeanStore(NamingScheme namingScheme, Map<String,Object> delegate, boolean safeIteration)
-
-
Method Detail
-
getAttribute
protected Object getAttribute(String prefixedId)
Description copied from class:AttributeBeanStore
Gets an attribute from the underlying storage- Specified by:
getAttribute
in classAttributeBeanStore
- Parameters:
prefixedId
- The (prefixed) id of the attribute- Returns:
- The data
-
removeAttribute
protected void removeAttribute(String prefixedId)
Description copied from class:AttributeBeanStore
Removes an attribute from the underlying storage- Specified by:
removeAttribute
in classAttributeBeanStore
- Parameters:
prefixedId
- The (prefixed) id of the attribute to remove
-
getAttributeNames
protected Iterator<String> getAttributeNames()
Description copied from class:AttributeBeanStore
Gets an enumeration of the attribute names present in the underlying storage. The collection must guarantee non-interference with other threads when iterating over it using iterator.- Specified by:
getAttributeNames
in classAttributeBeanStore
- Returns:
- The attribute names
-
setAttribute
protected void setAttribute(String prefixedId, Object instance)
Description copied from class:AttributeBeanStore
Sets an instance under a key in the underlying storage- Specified by:
setAttribute
in classAttributeBeanStore
- Parameters:
prefixedId
- The (prefixed) id of the attribute to setinstance
- The instance
-
getLockStore
public LockStore getLockStore()
- Specified by:
getLockStore
in classAttributeBeanStore
-
-