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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMapBeanStore(NamingScheme namingScheme, Map<String, Object> delegate) MapBeanStore(NamingScheme namingScheme, Map<String, Object> delegate, boolean safeIteration) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetAttribute(String prefixedId) Gets an attribute from the underlying storageGets an enumeration of the attribute names present in the underlying storage.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 storageMethods inherited from class org.jboss.weld.contexts.beanstore.AttributeBeanStore
attach, clear, contains, detach, fetchUninitializedAttributes, get, 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
-
Field Details
-
lockStore
-
-
Constructor Details
-
MapBeanStore
-
MapBeanStore
-
-
Method Details
-
getAttribute
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
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
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
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
- Specified by:
getLockStorein classAttributeBeanStore
-