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
public class SessionMapBeanStore extends MapBeanStore
AMapBeanStore
whoseLockStore
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". MoreoverBeanStore.get(BeanIdentifier)
not only searches the cached bean store inAttributeBeanStore
but also the underlying map.- Author:
- Martin Kouba
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.contexts.beanstore.MapBeanStore
lockStore
-
-
Constructor Summary
Constructors Constructor Description SessionMapBeanStore(NamingScheme namingScheme, Map<String,Object> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ContextualInstance<T>
get(org.jboss.weld.serialization.spi.BeanIdentifier id)
Gets an instance of a contextual from the storeLockStore
getLockStore()
-
Methods inherited from class org.jboss.weld.contexts.beanstore.MapBeanStore
getAttribute, getAttributeNames, removeAttribute, setAttribute
-
Methods inherited from class org.jboss.weld.contexts.beanstore.AttributeBeanStore
attach, clear, contains, detach, fetchUninitializedAttributes, 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
-
-
-
-
Constructor Detail
-
SessionMapBeanStore
public SessionMapBeanStore(NamingScheme namingScheme, Map<String,Object> delegate)
-
-
Method Detail
-
get
public <T> ContextualInstance<T> get(org.jboss.weld.serialization.spi.BeanIdentifier id)
Description copied from interface:BeanStore
Gets an instance of a contextual from the store- Specified by:
get
in interfaceBeanStore
- Overrides:
get
in classAttributeBeanStore
- Parameters:
id
- The id of the contextual to return- Returns:
- The instance or null if not found
-
getLockStore
public LockStore getLockStore()
- Overrides:
getLockStore
in classMapBeanStore
-
-