|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.context.AbstractContext
org.jboss.weld.context.AbstractMapContext
public abstract class AbstractMapContext
Base for the Context implementations. Delegates calls to the abstract getBeanStorage and getActive to allow for different implementations (storage types and ThreadLocal vs. shared)
org.jboss.weld.contexts.SharedContext,
org.jboss.weld.context.BasicContext| Constructor Summary | |
|---|---|
AbstractMapContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Constructor |
|
| Method Summary | ||
|---|---|---|
void |
cleanup()
|
|
void |
destroy()
Destroys the context |
|
|
get(javax.enterprise.context.spi.Contextual<T> contextual)
|
|
|
get(javax.enterprise.context.spi.Contextual<T> contextual,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Get the bean if it exists in the contexts. |
|
protected abstract org.jboss.weld.context.api.BeanStore |
getBeanStore()
A method that returns the actual bean store implementation |
|
protected static
|
getContextual(java.lang.String id)
|
|
protected static java.lang.String |
getId(javax.enterprise.context.spi.Contextual<?> contextual)
|
|
protected abstract boolean |
isCreationLockRequired()
If Context need to inhibit concurrent instance creation then true, else false. |
|
| Methods inherited from class org.jboss.weld.context.AbstractContext |
|---|
getScope, isActive, setActive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMapContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
scopeType - The scope type| Method Detail |
|---|
public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
create - If true, a new instance of the bean will be created if none
exists
javax.enterprise.context.ContextNotActiveException - if the context is not activejavax.enterprise.context.spi.Context#get(BaseBean, boolean)public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual)
public void destroy()
protected abstract org.jboss.weld.context.api.BeanStore getBeanStore()
protected abstract boolean isCreationLockRequired()
public void cleanup()
cleanup in class AbstractContextprotected static <T> javax.enterprise.context.spi.Contextual<T> getContextual(java.lang.String id)
protected static java.lang.String getId(javax.enterprise.context.spi.Contextual<?> contextual)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||