public abstract class AbstractSessionBeanStore extends AttributeBeanStore
LazySessionBeanStore
,
EagerSessionBeanStore
Constructor and Description |
---|
AbstractSessionBeanStore(NamingScheme namingScheme) |
Modifier and Type | Method and Description |
---|---|
<T> org.jboss.weld.context.api.ContextualInstance<T> |
get(org.jboss.weld.serialization.spi.BeanIdentifier 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
|
attach, clear, contains, detach, getNamingScheme, getPrefixedAttributeNames, isAttached, iterator, lock, put, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public AbstractSessionBeanStore(NamingScheme namingScheme)
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(org.jboss.weld.serialization.spi.BeanIdentifier id)
BeanStore
get
in interface BeanStore
get
in class AttributeBeanStore
id
- The id of the contextual to returnprotected Object getAttribute(String prefixedId)
AttributeBeanStore
getAttribute
in class AttributeBeanStore
prefixedId
- The (prefixed) id of the attributeprotected LockStore getLockStore()
getLockStore
in class AttributeBeanStore
Copyright © 2016. All rights reserved.