|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.context.api.helpers.ForwardingBeanStore
public abstract class ForwardingBeanStore
Constructor Summary | |
---|---|
ForwardingBeanStore()
|
Method Summary | ||
---|---|---|
void |
clear()
Clears the storage of any bean instances |
|
protected abstract BeanStore |
delegate()
|
|
boolean |
equals(java.lang.Object obj)
|
|
|
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 |
|
int |
hashCode()
|
|
|
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 |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ForwardingBeanStore()
Method Detail |
---|
protected abstract BeanStore delegate()
public void clear()
BeanStore
clear
in interface BeanStore
public <T> T get(Contextual<? extends T> bean)
BeanStore
get
in interface BeanStore
bean
- The bean whose instance to return
public java.lang.Iterable<Contextual<? extends java.lang.Object>> getBeans()
BeanStore
getBeans
in interface BeanStore
public <T> void put(Contextual<? extends T> bean, T instance)
BeanStore
put
in interface BeanStore
bean
- The bean type. Used as keyinstance
- The instance to addpublic <T> T remove(Contextual<? extends T> bean)
BeanStore
remove
in interface BeanStore
bean
- The bean whose instance to remove
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |