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, getScope, isActive, setActive
public DependentContext()
protected <T> T getInstance(javax.enterprise.context.spi.Contextual<T> component, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
getInstance
in class AbstractContext
public void setComponentInstanceMap()
setComponentInstanceMap
in class AbstractContext
public <T> T get(javax.enterprise.context.spi.Contextual<T> component)
get
in interface javax.enterprise.context.spi.Context
get
in class AbstractContext
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.