public class DependentContext extends AbstractContext
Dependent context.
Each web beans component has a dependent context, that saves its dependent objects. Dependent context is destroyed at the end of the component destruction or its dependent objects are destroyed by the container at any time that the dependent object is no longer alive.
Dependent context is always active.
active, componentInstanceMap, scopeType| Constructor and Description |
|---|
DependentContext()
Creats a new instance of dependent context.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(javax.enterprise.context.spi.Contextual<T> component) |
protected <T> T |
getInstance(javax.enterprise.context.spi.Contextual<T> component,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
void |
setComponentInstanceMap() |
checkActive, destroy, get, getCreationalContext, getScope, initContextualBag, isActive, setActivepublic DependentContext()
protected <T> T getInstance(javax.enterprise.context.spi.Contextual<T> component,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
getInstance in class AbstractContextpublic void setComponentInstanceMap()
setComponentInstanceMap in class AbstractContextpublic <T> T get(javax.enterprise.context.spi.Contextual<T> component)
get in interface javax.enterprise.context.spi.Contextget in class AbstractContextCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.