Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.context » [javadoc | source]
org.apache.webbeans.context
abstract public class: AbstractContext [javadoc | source]
java.lang.Object
   org.apache.webbeans.context.AbstractContext

All Implemented Interfaces:
    WebBeansContext

Direct Known Subclasses:
    SessionContext, ApplicationContext, RequestContext, DependentContext, ConversationContext

Abstract implementation of the WebBeansContext interfaces.
Field Summary
protected  boolean active    Context status, active or not 
protected  ContextTypes type    Context type 
protected  Map<?, Object> componentInstanceMap    Context contextual instances 
protected  Class<Annotation> scopeType    Contextual Scope Type 
protected  Map<?> creationalContextMap    Contextual to CreationalContext Map 
Constructor:
 protected AbstractContext() 
 protected AbstractContext(Class<Annotation> scopeType) 
    Creates a new context with given scope type.
    Parameters:
    scopeType - context scope type
 protected AbstractContext(ContextTypes type) 
    Creates a new context with given context type.
    Parameters:
    type - context type
Method from org.apache.webbeans.context.AbstractContext Summary:
checkActive,   destroy,   get,   get,   getComponentInstanceMap,   getInstance,   getScope,   getType,   isActive,   setActive,   setComponentInstanceMap
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.webbeans.context.AbstractContext Detail:
 protected  void checkActive() 
    Check that context is active or throws exception.
 public  void destroy() 
    {@inheritDoc}
 public T get(Contextual<T> component) 
    {@inheritDoc}
 public T get(Contextual<T> component,
    CreationalContext<T> creationalContext) 
    {@inheritDoc}
 public Map<?, Object> getComponentInstanceMap() 
    {@inheritDoc}
 protected T getInstance(Contextual<T> component,
    CreationalContext<T> creationalContext) 
    {@inheritDoc}
 public Class<Annotation> getScope() 
    {@inheritDoc}
 public ContextTypes getType() 
    Type of the context.
 public boolean isActive() 
    Gets context active flag.
 public  void setActive(boolean active) 
    Set component active flag.
 abstract protected  void setComponentInstanceMap()
    {@inheritDoc}