public abstract class AbstractMapBackedBeanStore extends java.lang.Object implements BeanStore
| Constructor and Description |
|---|
AbstractMapBackedBeanStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the store of contextual instances
|
boolean |
contains(BeanIdentifier id)
Check if the store contains an instance
|
protected abstract java.util.Map<BeanIdentifier,java.lang.Object> |
delegate() |
boolean |
equals(java.lang.Object obj) |
<T> ContextualInstance<T> |
get(BeanIdentifier id)
Gets an instance of a contextual from the store
|
java.util.Set<BeanIdentifier> |
getContextualIds() |
int |
hashCode() |
java.util.Iterator<BeanIdentifier> |
iterator() |
<T> void |
put(BeanIdentifier id,
ContextualInstance<T> beanInstance)
Adds a bean instance to the storage
|
<T> ContextualInstance<T> |
remove(BeanIdentifier id)
Removes a bean instance identified by the given id.
|
java.lang.String |
toString() |
protected abstract java.util.Map<BeanIdentifier,java.lang.Object> delegate()
public <T> ContextualInstance<T> get(BeanIdentifier id)
BeanStorepublic void clear()
BeanStorepublic boolean contains(BeanIdentifier id)
BeanStorepublic <T> ContextualInstance<T> remove(BeanIdentifier id)
BeanStorepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.Set<BeanIdentifier> getContextualIds()
public <T> void put(BeanIdentifier id, ContextualInstance<T> beanInstance)
BeanStorepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<BeanIdentifier> iterator()
iterator in interface java.lang.Iterable<BeanIdentifier>iterator in interface BeanStoreCopyright © 2015. All Rights Reserved.