|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.context.beanmap.AbstractBeanMap
public abstract class AbstractBeanMap
Provides common BeanMap operations
| Constructor Summary | |
|---|---|
AbstractBeanMap()
|
|
| Method Summary | ||
|---|---|---|
void |
clear()
Clears the bean map |
|
|
get(Contextual<? extends T> bean)
Gets a bean from the map |
|
protected abstract java.lang.Object |
getAttribute(java.lang.String key)
Gets an attribute from the underlying storage |
|
protected abstract java.util.Enumeration<java.lang.String> |
getAttributeNames()
Gets an enumeration of the beans present in the underlying storage |
|
protected java.lang.String |
getBeanKey(Contextual<?> bean)
Returns a map key to a bean. |
|
protected abstract java.lang.String |
getKeyPrefix()
Gets a key prefix that should be prefixed to names |
|
java.lang.Iterable<Contextual<? extends java.lang.Object>> |
keySet()
Returns the beans present in the map |
|
|
put(Contextual<? extends T> bean,
T instance)
Puts an instance of a bean in the map |
|
|
remove(Contextual<? extends T> bean)
Removes an instance from the map |
|
protected abstract void |
removeAttribute(java.lang.String key)
Removes an attribute from the underlying storage |
|
protected abstract void |
setAttribute(java.lang.String key,
java.lang.Object instance)
Sets an instance under a key in the underlying storage |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractBeanMap()
| Method Detail |
|---|
public <T> T get(Contextual<? extends T> bean)
get in interface BeanMapbean - The bean to get
public <T> T remove(Contextual<? extends T> bean)
remove in interface BeanMapbean - The bean of the instance to remove
public void clear()
clear in interface BeanMappublic java.lang.Iterable<Contextual<? extends java.lang.Object>> keySet()
keySet in interface BeanMap
public <T> void put(Contextual<? extends T> bean,
T instance)
put in interface BeanMapbean - The key beaninstance - The instanceprotected abstract java.lang.Object getAttribute(java.lang.String key)
key - The key of the attribute
protected abstract void removeAttribute(java.lang.String key)
key - The attribute to removeprotected abstract java.util.Enumeration<java.lang.String> getAttributeNames()
protected abstract void setAttribute(java.lang.String key,
java.lang.Object instance)
key - The keyinstance - The instanceprotected abstract java.lang.String getKeyPrefix()
protected java.lang.String getBeanKey(Contextual<?> bean)
bean - The bean to generate a key for.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||