|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.context.AbstractContext
public abstract class AbstractContext
Base for the Context implementations. Delegates calls to the abstract getBeanStore 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 | |
---|---|
AbstractContext(boolean multithreaded)
Constructor |
Method Summary | ||
---|---|---|
void |
cleanup()
|
|
protected 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 BeanStore |
getBeanStore()
A method that returns the actual bean store implementation |
|
protected static
|
getContextual(String id)
|
|
protected String |
getId(javax.enterprise.context.spi.Contextual<?> contextual)
|
|
protected org.jboss.weld.bootstrap.api.ServiceRegistry |
getServiceRegistry()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.enterprise.context.spi.Context |
---|
getScope, isActive |
Constructor Detail |
---|
public AbstractContext(boolean multithreaded)
Method Detail |
---|
public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
get
in interface javax.enterprise.context.spi.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)
get
in interface javax.enterprise.context.spi.Context
protected void destroy()
protected abstract BeanStore getBeanStore()
public void cleanup()
protected static <T> javax.enterprise.context.spi.Contextual<T> getContextual(String id)
protected String getId(javax.enterprise.context.spi.Contextual<?> contextual)
protected org.jboss.weld.bootstrap.api.ServiceRegistry getServiceRegistry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |