org.apache.webbeans.context
Class DependentContext

java.lang.Object
  extended by org.apache.webbeans.context.AbstractContext
      extended by org.apache.webbeans.context.DependentContext
All Implemented Interfaces:
Serializable, javax.enterprise.context.spi.Context, WebBeansContext

public class DependentContext
extends AbstractContext

Defines the component 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.

Version:
$Rev$ $Date$
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.webbeans.context.AbstractContext
active, componentInstanceMap, scopeType, type
 
Constructor Summary
DependentContext()
          Creats a new instance of dependent context.
 
Method Summary
<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()
          
 
Methods inherited from class org.apache.webbeans.context.AbstractContext
checkActive, destroy, get, getComponentInstanceMap, getCreationalContext, getScope, getType, initContextualBag, isActive, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependentContext

public DependentContext()
Creats a new instance of dependent context.

Method Detail

getInstance

protected <T> T getInstance(javax.enterprise.context.spi.Contextual<T> component,
                            javax.enterprise.context.spi.CreationalContext<T> creationalContext)

Overrides:
getInstance in class AbstractContext

setComponentInstanceMap

public void setComponentInstanceMap()

Specified by:
setComponentInstanceMap in class AbstractContext

get

public <T> T get(javax.enterprise.context.spi.Contextual<T> component)

Specified by:
get in interface javax.enterprise.context.spi.Context
Overrides:
get in class AbstractContext


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.