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 ObjectgetAttribute(String prefixedId)Gets an attribute from the underlying storageprotected Iterator<String>getAttributeNames()Gets an enumeration of the attribute names present in the underlying storage.LockStoregetLockStore()protected voidremoveAttribute(String prefixedId)Removes an attribute from the underlying storageprotected voidsetAttribute(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:AttributeBeanStoreGets an attribute from the underlying storage- Specified by:
getAttributein classAttributeBeanStore- Parameters:
prefixedId- The (prefixed) id of the attribute- Returns:
- The data
-
removeAttribute
protected void removeAttribute(String prefixedId)
Description copied from class:AttributeBeanStoreRemoves an attribute from the underlying storage- Specified by:
removeAttributein classAttributeBeanStore- Parameters:
prefixedId- The (prefixed) id of the attribute to remove
-
getAttributeNames
protected Iterator<String> getAttributeNames()
Description copied from class:AttributeBeanStoreGets 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:
getAttributeNamesin classAttributeBeanStore- Returns:
- The attribute names
-
setAttribute
protected void setAttribute(String prefixedId, Object instance)
Description copied from class:AttributeBeanStoreSets an instance under a key in the underlying storage- Specified by:
setAttributein classAttributeBeanStore- Parameters:
prefixedId- The (prefixed) id of the attribute to setinstance- The instance
-
getLockStore
public LockStore getLockStore()
- Specified by:
getLockStorein classAttributeBeanStore
-
-