|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanStore
Interface for different implementations of Bean to Bean instance storage. Used primarily by the contexts.
Method Summary | ||
---|---|---|
void |
clear()
Clears the storage of any bean instances |
|
|
get(Contextual<? extends T> bean)
Gets an instance of a bean from the storage. |
|
java.lang.Iterable<Contextual<? extends java.lang.Object>> |
getBeans()
Returns an Iterable over the current contents in the storage |
|
|
put(Contextual<? extends T> bean,
T instance)
Adds a bean instance to the storage |
|
|
remove(Contextual<? extends T> bean)
Removes an instance of a bean from the storage |
Method Detail |
---|
<T> T get(Contextual<? extends T> bean)
bean
- The bean whose instance to return
<T> T remove(Contextual<? extends T> bean)
bean
- The bean whose instance to remove
void clear()
java.lang.Iterable<Contextual<? extends java.lang.Object>> getBeans()
<T> void put(Contextual<? extends T> bean, T instance)
bean
- The bean type. Used as keyinstance
- The instance to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |