Class SessionMapBeanStore
java.lang.Object
org.jboss.weld.contexts.beanstore.AttributeBeanStore
org.jboss.weld.contexts.beanstore.MapBeanStore
org.jboss.weld.contexts.beanstore.SessionMapBeanStore
- All Implemented Interfaces:
Iterable<org.jboss.weld.serialization.spi.BeanIdentifier>,BeanStore,BoundBeanStore
A
MapBeanStore whose LockStore is associated with the key "org.jboss.weld.context.beanstore.LockStore" in the provided map and so
may be shared across several
stores used within a single "session". Moreover BeanStore.get(BeanIdentifier) not only searches the cached bean store
in AttributeBeanStore
but also the underlying map.- Author:
- Martin Kouba
-
Field Summary
Fields inherited from class org.jboss.weld.contexts.beanstore.MapBeanStore
lockStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> ContextualInstance<T>get(org.jboss.weld.serialization.spi.BeanIdentifier id) Gets an instance of a contextual from the storeMethods inherited from class org.jboss.weld.contexts.beanstore.MapBeanStore
getAttribute, getAttributeNames, removeAttribute, setAttributeMethods inherited from class org.jboss.weld.contexts.beanstore.AttributeBeanStore
attach, clear, contains, detach, fetchUninitializedAttributes, 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
-
Constructor Details
-
SessionMapBeanStore
-
-
Method Details
-
get
Description copied from interface:BeanStoreGets an instance of a contextual from the store- Specified by:
getin interfaceBeanStore- Overrides:
getin classAttributeBeanStore- Parameters:
id- The id of the contextual to return- Returns:
- The instance or null if not found
-
getLockStore
- Overrides:
getLockStorein classMapBeanStore
-