public abstract class AbstractContext extends Object implements javax.enterprise.context.spi.Context
Context interface and getContextualStorage(Contextual, boolean).| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractContext(javax.enterprise.inject.spi.BeanManager beanManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
checkActive()
Make sure that the Context is really active. 
 | 
boolean | 
destroy(javax.enterprise.context.spi.Contextual bean)
Destroy the Contextual Instance of the given Bean. 
 | 
void | 
destroyAllActive()
destroys all the Contextual Instances in the Storage returned by
  
getContextualStorage(Contextual, boolean). | 
static Map<Object,ContextualInstanceInfo<?>> | 
destroyAllActive(ContextualStorage storage)
Destroys all the Contextual Instances in the specified ContextualStorage. 
 | 
static void | 
destroyBean(javax.enterprise.context.spi.Contextual bean,
           ContextualInstanceInfo<?> contextualInstanceInfo)  | 
<T> T | 
get(javax.enterprise.context.spi.Contextual<T> bean)  | 
<T> T | 
get(javax.enterprise.context.spi.Contextual<T> bean,
   javax.enterprise.context.spi.CreationalContext<T> creationalContext)  | 
protected List<ContextualStorage> | 
getActiveContextualStorages()  | 
protected abstract ContextualStorage | 
getContextualStorage(javax.enterprise.context.spi.Contextual<?> contextual,
                    boolean createIfNotExist)
An implementation has to return the underlying storage which
 contains the items held in the Context. 
 | 
boolean | 
isPassivatingScope()  | 
protected AbstractContext(javax.enterprise.inject.spi.BeanManager beanManager)
protected abstract ContextualStorage getContextualStorage(javax.enterprise.context.spi.Contextual<?> contextual, boolean createIfNotExist)
createIfNotExist - whether a ContextualStorage shall get created if it doesn't yet exist.protected List<ContextualStorage> getActiveContextualStorages()
public boolean isPassivatingScope()
public <T> T get(javax.enterprise.context.spi.Contextual<T> bean)
get in interface javax.enterprise.context.spi.Contextpublic <T> T get(javax.enterprise.context.spi.Contextual<T> bean,
                 javax.enterprise.context.spi.CreationalContext<T> creationalContext)
get in interface javax.enterprise.context.spi.Contextpublic boolean destroy(javax.enterprise.context.spi.Contextual bean)
bean - dictates which bean shall get cleaned uptrue if the bean was destroyed, false if there was no such bean.public void destroyAllActive()
getContextualStorage(Contextual, boolean).public static Map<Object,ContextualInstanceInfo<?>> destroyAllActive(ContextualStorage storage)
public static void destroyBean(javax.enterprise.context.spi.Contextual bean,
                               ContextualInstanceInfo<?> contextualInstanceInfo)
protected void checkActive()
javax.enterprise.context.ContextNotActiveException - if there is no active
         Context for the current Thread.Copyright © 2017 The Apache Software Foundation. All rights reserved.