|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.context.beanstore.AbstractAttributeBackedBeanStore
public abstract class AbstractAttributeBackedBeanStore
Provides common BeanStore operations
Constructor Summary | |
---|---|
AbstractAttributeBackedBeanStore()
|
Method Summary | ||
---|---|---|
void |
clear()
Clears the bean store |
|
|
get(Contextual<? extends T> contextual)
Gets a bean from the store |
|
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 attribute names present in the underlying storage |
|
java.lang.Iterable<Contextual<? extends java.lang.Object>> |
getBeans()
Returns the beans present in the store |
|
protected abstract BeanStoreNamingScheme |
getNamingScheme()
Gets an naming scheme for handling keys in a bean store |
|
|
put(Contextual<? extends T> bean,
T instance)
Puts an instance of a bean in the store |
|
|
remove(Contextual<? extends T> contextual)
Removes an instance from the store |
|
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 AbstractAttributeBackedBeanStore()
Method Detail |
---|
public <T> T get(Contextual<? extends T> contextual)
get
in interface BeanStore
contextual
- The bean to get
public <T> T remove(Contextual<? extends T> contextual)
remove
in interface BeanStore
contextual
- The bean of the instance to remove
public void clear()
clear
in interface BeanStore
public java.lang.Iterable<Contextual<? extends java.lang.Object>> getBeans()
getBeans
in interface BeanStore
public <T> void put(Contextual<? extends T> bean, T instance)
put
in interface BeanStore
bean
- 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 BeanStoreNamingScheme getNamingScheme()
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 |