|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.context.beanstore.AttributeBeanStore
org.jboss.weld.context.beanstore.http.AbstractSessionBeanStore
public abstract class AbstractSessionBeanStore
Base class providing an HttpSession backed, bound bean store.
LazySessionBeanStore
,
EagerSessionBeanStore
Constructor Summary | |
---|---|
AbstractSessionBeanStore(NamingScheme namingScheme)
|
Method Summary | ||
---|---|---|
|
get(String id)
Gets an instance of a contextual from the store |
|
protected Object |
getAttribute(String prefixedId)
Gets an attribute from the underlying storage |
|
protected Collection<String> |
getAttributeNames()
Gets an enumeration of the attribute names present in the underlying storage |
|
protected LockStore |
getLockStore()
|
|
protected abstract javax.servlet.http.HttpSession |
getSession(boolean create)
|
|
protected void |
removeAttribute(String key)
Removes an attribute from the underlying storage |
|
protected void |
setAttribute(String key,
Object instance)
Sets an instance under a key in the underlying storage |
Methods inherited from class org.jboss.weld.context.beanstore.AttributeBeanStore |
---|
attach, clear, contains, detach, getNamingScheme, getPrefixedAttributeNames, isAttached, iterator, lock, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSessionBeanStore(NamingScheme namingScheme)
Method Detail |
---|
protected abstract javax.servlet.http.HttpSession getSession(boolean create)
protected Collection<String> getAttributeNames()
AttributeBeanStore
getAttributeNames
in class AttributeBeanStore
protected void removeAttribute(String key)
AttributeBeanStore
removeAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attribute to removeprotected void setAttribute(String key, Object instance)
AttributeBeanStore
setAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attribute to setinstance
- The instancepublic <T> org.jboss.weld.context.api.ContextualInstance<T> get(String id)
BeanStore
get
in interface BeanStore
get
in class AttributeBeanStore
id
- The id of the contextual to return
protected Object getAttribute(String prefixedId)
AttributeBeanStore
getAttribute
in class AttributeBeanStore
prefixedId
- The (prefixed) id of the attribute
protected LockStore getLockStore()
getLockStore
in class AttributeBeanStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |