|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.context.beanstore.AbstractAttributeBackedBeanStore
public abstract class AbstractAttributeBackedBeanStore
Provides common BeanStore operations
| Constructor Summary | |
|---|---|
AbstractAttributeBackedBeanStore()
|
|
| Method Summary | ||
|---|---|---|
void |
clear()
Clears the bean store |
|
|
get(java.lang.String id)
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.util.Collection<java.lang.String> |
getContextualIds()
Returns the beans present in the store |
|
protected abstract NamingScheme |
getNamingScheme()
Gets an naming scheme for handling keys in a bean store |
|
|
put(java.lang.String id,
org.jboss.weld.context.api.ContextualInstance<T> beanInstance)
Puts an instance of a bean in 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> org.jboss.weld.context.api.ContextualInstance<T> get(java.lang.String id)
get in interface org.jboss.weld.context.api.BeanStorecontextual - The bean to get
public void clear()
clear in interface org.jboss.weld.context.api.BeanStorepublic java.util.Collection<java.lang.String> getContextualIds()
getContextualIds in interface org.jboss.weld.context.api.BeanStore
public <T> void put(java.lang.String id,
org.jboss.weld.context.api.ContextualInstance<T> beanInstance)
put in interface org.jboss.weld.context.api.BeanStorebean - 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 NamingScheme 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 | |||||||||