|
||||||||||
| 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(javax.context.Contextual<? extends T> bean)
Gets an instance of a bean from the storage. |
|
java.lang.Iterable<javax.context.Contextual<? extends java.lang.Object>> |
getBeans()
Returns an Iterable over the current contents in the storage |
|
|
put(javax.context.Contextual<? extends T> bean,
T instance)
Adds a bean instance to the storage |
|
|
remove(javax.context.Contextual<? extends T> bean)
Removes an instance of a bean from the storage |
|
| Method Detail |
|---|
<T> T get(javax.context.Contextual<? extends T> bean)
bean - The bean whose instance to return
<T> T remove(javax.context.Contextual<? extends T> bean)
bean - The bean whose instance to remove
void clear()
java.lang.Iterable<javax.context.Contextual<? extends java.lang.Object>> getBeans()
<T> void put(javax.context.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 | |||||||||