|
||||||||||
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.RequestBeanStore
public class RequestBeanStore
A BeanStore that uses a HTTP request as backing storage.
This class is not threadsafe
Constructor Summary | |
---|---|
RequestBeanStore(javax.servlet.ServletRequest request,
NamingScheme namingScheme)
|
Method Summary | |
---|---|
boolean |
attach()
Attach the bean store, any updates from now on will be written through to the underlying store. |
boolean |
detach()
Detach the bean store, causing updates to longer be written through to the underlying store. |
protected Object |
getAttribute(String key)
Gets an attribute from the underlying storage |
protected Collection<String> |
getAttributeNames()
Gets an enumeration of the attribute names present in the underlying storage |
LockStore |
getLockStore()
|
boolean |
isAttached()
Return true if the bean store is attached |
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 |
---|
clear, contains, get, getNamingScheme, getPrefixedAttributeNames, iterator, lock, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestBeanStore(javax.servlet.ServletRequest request, NamingScheme namingScheme)
Method Detail |
---|
protected Object getAttribute(String key)
AttributeBeanStore
getAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attribute
protected void removeAttribute(String key)
AttributeBeanStore
removeAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attribute to removeprotected Collection<String> getAttributeNames()
AttributeBeanStore
getAttributeNames
in class AttributeBeanStore
protected void setAttribute(String key, Object instance)
AttributeBeanStore
setAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attribute to setinstance
- The instancepublic boolean attach()
AttributeBeanStore
Attach the bean store, any updates from now on will be written through to the underlying store.
When the bean store is attached, the detached state is assumed to be authoritative if there are any conflicts.
attach
in interface BoundBeanStore
attach
in class AttributeBeanStore
public boolean detach()
AttributeBeanStore
detach
in interface BoundBeanStore
detach
in class AttributeBeanStore
public boolean isAttached()
BoundBeanStore
isAttached
in interface BoundBeanStore
isAttached
in class AttributeBeanStore
public LockStore getLockStore()
getLockStore
in class AttributeBeanStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |