Class SessionMapBeanStore

All Implemented Interfaces:
Iterable<org.jboss.weld.serialization.spi.BeanIdentifier>, BeanStore, BoundBeanStore

public class SessionMapBeanStore extends MapBeanStore
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
  • Constructor Details

  • Method Details

    • 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 interface BeanStore
      Overrides:
      get in class AttributeBeanStore
      Parameters:
      id - The id of the contextual to return
      Returns:
      The instance or null if not found
    • getLockStore

      public LockStore getLockStore()
      Overrides:
      getLockStore in class MapBeanStore