Package org.apache.webbeans.context
Class DependentContext
- java.lang.Object
-
- org.apache.webbeans.context.AbstractContext
-
- org.apache.webbeans.context.DependentContext
-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,Serializable
public class DependentContext extends AbstractContext
Defines the componentDependentcontext.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.
- Version:
- $Rev$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.webbeans.context.AbstractContext
active, componentInstanceMap, scopeType
-
-
Constructor Summary
Constructors Constructor Description DependentContext()Creats a new instance of dependent context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(jakarta.enterprise.context.spi.Contextual<T> component)protected <T> TgetInstance(jakarta.enterprise.context.spi.Contextual<T> component, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)voidsetComponentInstanceMap()-
Methods inherited from class org.apache.webbeans.context.AbstractContext
checkActive, destroy, destroy, destroyInstance, get, getScope, isActive, setActive
-
-
-
-
Method Detail
-
getInstance
protected <T> T getInstance(jakarta.enterprise.context.spi.Contextual<T> component, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)- Overrides:
getInstancein classAbstractContext
-
setComponentInstanceMap
public void setComponentInstanceMap()
- Specified by:
setComponentInstanceMapin classAbstractContext
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> component)
- Specified by:
getin interfacejakarta.enterprise.context.spi.Context- Overrides:
getin classAbstractContext
-
-