org.jboss.weld.context.beanstore
Class HashMapBeanStore

java.lang.Object
  extended by org.jboss.weld.context.beanstore.AbstractMapBackedBeanStore
      extended by org.jboss.weld.context.beanstore.HashMapBeanStore
All Implemented Interfaces:
Serializable, Iterable<String>, BeanStore

public class HashMapBeanStore
extends AbstractMapBackedBeanStore
implements Serializable

A BeanStore that uses a HashMap as backing storage

Author:
Nicklas Karlsson
See Also:
Serialized Form

Field Summary
protected  Map<String,Object> delegate
           
 
Constructor Summary
HashMapBeanStore()
          Constructor
 
Method Summary
 Map<String,Object> delegate()
          Gets the delegate for the store
 LockedBean lock(String id)
          Gets a creation lock for the given bean id.
 
Methods inherited from class org.jboss.weld.context.beanstore.AbstractMapBackedBeanStore
clear, contains, equals, get, getContextualIds, hashCode, iterator, put, remove, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected Map<String,Object> delegate
Constructor Detail

HashMapBeanStore

public HashMapBeanStore()
Constructor

Method Detail

delegate

public Map<String,Object> delegate()
Gets the delegate for the store

Specified by:
delegate in class AbstractMapBackedBeanStore
Returns:
The delegate

lock

public LockedBean lock(String id)
Description copied from interface: BeanStore
Gets a creation lock for the given bean id.

Specified by:
lock in interface BeanStore
Parameters:
id - The bean id
Returns:
A handle that must be used to unlock the bean


Copyright © 2013 Seam Framework. All Rights Reserved.