public abstract class AbstractContext extends Object implements javax.enterprise.context.spi.Context
org.jboss.weld.contexts.SharedContext,
org.jboss.weld.context.BasicContext| Constructor and Description |
|---|
AbstractContext(boolean multithreaded)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
protected void |
destroy()
Destroys the context
|
<T> T |
get(javax.enterprise.context.spi.Contextual<T> contextual) |
<T> T |
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 <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() |
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.ContextContextNotActiveException - 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.Contextprotected 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()
Copyright © 2014 Seam Framework. All Rights Reserved.