Class AbstractMapBackedBeanStore
- java.lang.Object
-
- org.jboss.weld.contexts.beanstore.AbstractMapBackedBeanStore
-
- Direct Known Subclasses:
ConcurrentHashMapBeanStore
,HashMapBeanStore
public abstract class AbstractMapBackedBeanStore extends Object implements BeanStore
-
-
Constructor Summary
Constructors Constructor Description AbstractMapBackedBeanStore()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the store of contextual instancesboolean
contains(org.jboss.weld.serialization.spi.BeanIdentifier id)
Check if the store contains an instanceprotected abstract Map<org.jboss.weld.serialization.spi.BeanIdentifier,Object>
delegate()
boolean
equals(Object obj)
<T> org.jboss.weld.context.api.ContextualInstance<T>
get(org.jboss.weld.serialization.spi.BeanIdentifier id)
Gets an instance of a contextual from the storeSet<org.jboss.weld.serialization.spi.BeanIdentifier>
getContextualIds()
int
hashCode()
Iterator<org.jboss.weld.serialization.spi.BeanIdentifier>
iterator()
<T> void
put(org.jboss.weld.serialization.spi.BeanIdentifier id, org.jboss.weld.context.api.ContextualInstance<T> beanInstance)
Adds a bean instance to the storage<T> org.jboss.weld.context.api.ContextualInstance<T>
remove(org.jboss.weld.serialization.spi.BeanIdentifier id)
Removes a bean instance identified by the given id.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
get
public <T> org.jboss.weld.context.api.ContextualInstance<T> get(org.jboss.weld.serialization.spi.BeanIdentifier id)
Description copied from interface:BeanStore
Gets an instance of a contextual from the store
-
clear
public void clear()
Description copied from interface:BeanStore
Clears the store of contextual instances
-
contains
public boolean contains(org.jboss.weld.serialization.spi.BeanIdentifier id)
Description copied from interface:BeanStore
Check if the store contains an instance
-
remove
public <T> org.jboss.weld.context.api.ContextualInstance<T> remove(org.jboss.weld.serialization.spi.BeanIdentifier id)
Description copied from interface:BeanStore
Removes a bean instance identified by the given id.
-
getContextualIds
public Set<org.jboss.weld.serialization.spi.BeanIdentifier> getContextualIds()
-
put
public <T> void put(org.jboss.weld.serialization.spi.BeanIdentifier id, org.jboss.weld.context.api.ContextualInstance<T> beanInstance)
Description copied from interface:BeanStore
Adds a bean instance to the storage
-
-