|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.context.AbstractContext
org.jboss.webbeans.context.AbstractBeanMapContext
public abstract class AbstractBeanMapContext
Base for the Context implementations. Delegates calls to the abstract getBeanMap and getActive to allow for different implementations (storage types and ThreadLocal vs. shared)
org.jboss.webbeans.contexts.SharedContext,
BasicContext| Constructor Summary | |
|---|---|
AbstractBeanMapContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Constructor |
|
| Method Summary | ||
|---|---|---|
void |
destroy()
Destroys the context |
|
|
get(Contextual<T> contextual)
|
|
|
get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
Get the bean if it exists in the contexts. |
|
protected abstract BeanMap |
getBeanMap()
A method that should return the actual bean map implementation |
|
| Methods inherited from class org.jboss.webbeans.context.AbstractContext |
|---|
getActive, getScopeType, isActive, setActive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractBeanMapContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
scopeType - The scope type| Method Detail |
|---|
public <T> T get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
create - If true, a new instance of the bean will be created if none
exists
ContextNotActiveException - if the context is not activejavax.context.Context#get(Bean, boolean)public <T> T get(Contextual<T> contextual)
public void destroy()
protected abstract BeanMap getBeanMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||