public abstract class AbstractMapBackedBeanStore extends 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 Map<BeanIdentifier,Object> |
delegate() |
boolean |
equals(Object obj) |
<T> ContextualInstance<T> |
get(BeanIdentifier id)
Gets an instance of a contextual from the store
|
Set<BeanIdentifier> |
getContextualIds() |
int |
hashCode() |
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.
|
String |
toString() |
protected abstract Map<BeanIdentifier,Object> delegate()
public <T> ContextualInstance<T> get(BeanIdentifier id)
BeanStore
public void clear()
BeanStore
public boolean contains(BeanIdentifier id)
BeanStore
public <T> ContextualInstance<T> remove(BeanIdentifier id)
BeanStore
public Set<BeanIdentifier> getContextualIds()
public <T> void put(BeanIdentifier id, ContextualInstance<T> beanInstance)
BeanStore
public Iterator<BeanIdentifier> iterator()
iterator
in interface Iterable<BeanIdentifier>
iterator
in interface BeanStore
Copyright © 2014. All Rights Reserved.