Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.component » [javadoc | source]
org.apache.webbeans.component
abstract public class: AbstractBean [javadoc | source]
java.lang.Object
   org.apache.webbeans.component.BaseBean<T>
      org.apache.webbeans.component.AbstractBean

All Implemented Interfaces:
    javax.enterprise.inject.spi.Bean

Direct Known Subclasses:
    WebBeansDecorator, EjbBean, AbstractProducerBean, JmsBean, WebBeansXMLDecorator, NewBean, ProducerFieldBean, InstanceBean, BeanManagerBean, ManagedBean, AbstractInjectionTargetBean, ExtensionBean, XMLManagedBean, InjectionPointBean, ConversationBean, ThirdpartyBeanImpl, EventBean, WebBeansInterceptor

Abstract implementation of the BaseBean contract.
Field Summary
protected  String name    Name of the bean 
protected  Annotation type    Deployment type of the bean 
protected  Annotation implScopeType    Scope type of the bean 
protected  Set<Annotation> implQualifiers    Qualifiers of the bean 
protected  Set<Type> apiTypes    Api types of the bean 
protected  WebBeansType webBeansType    Web Beans type 
protected  Class<T> returnType    Return type of the bean 
protected  Set<Annotation> stereoTypes    Stereotypes of the bean 
protected  boolean specializedBean    This bean is specialized or not 
protected  List<InterceptorData> interceptorStack    Holds the all of the interceptor related data, contains around-invoke, post-construct and pre-destroy 
protected  List<Object> decoratorStack    Holds decorator stack 
protected  boolean serializable    The bean is serializable or not 
protected  boolean nullable    The bean allows nullable object 
protected  Set<InjectionPoint> injectionPoints    Beans injection points 
protected  IBeanInheritedMetaData inheritedMetaData    Bean inherited meta data 
protected  InjectionPoint dependentOwnerInjectionPoint    Tracks dependent injection point owner, can be null 
protected  CreationalContext<T> creationalContext    Creational context 
Constructor:
 protected AbstractBean(WebBeansType webBeanType) 
    Creates a new instance.
    Parameters:
    webBeanType - beans type
 protected AbstractBean(WebBeansType webBeansType,
    Class<T> returnType) 
    Constructor definiton. Each subclass redefines its own constructor with calling this.
    Parameters:
    name - name of the bean
    webBeansType - web beans type
Method from org.apache.webbeans.component.AbstractBean Summary:
addApiType,   addInjectionPoint,   addQualifier,   addStereoType,   create,   createInstance,   destroy,   destroyInstance,   getBeanClass,   getCreationalContext,   getDecoratorStack,   getDependent,   getDependentOwnerInjectionPoint,   getDeploymentType,   getImplQualifiers,   getImplScopeType,   getInheritedMetaData,   getInjectionPoint,   getInjectionPoints,   getInterceptorStack,   getLogger,   getName,   getOwbStereotypes,   getPrecedence,   getQualifiers,   getReturnType,   getScope,   getStereotypes,   getType,   getTypes,   getWebBeansType,   isAlternative,   isNullable,   isSerializable,   isSpecializedBean,   setCreationalContext,   setDependentOwnerInjectionPoint,   setImplScopeType,   setInheritedMetaData,   setName,   setNullable,   setSerializable,   setSpecializedBean,   setType,   toString
Methods from org.apache.webbeans.component.BaseBean:
addApiType,   addInjectionPoint,   addQualifier,   addStereoType,   getCreationalContext,   getDecoratorStack,   getDependent,   getImplQualifiers,   getImplScopeType,   getInheritedMetaData,   getInjectionPoint,   getInterceptorStack,   getManager,   getOwbStereotypes,   getPrecedence,   getReturnType,   getType,   getWebBeansType,   isSpecializedBean,   setCreationalContext,   setImplScopeType,   setName,   setNullable,   setSerializable,   setSpecializedBean,   setType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.webbeans.component.AbstractBean Detail:
 public  void addApiType(Class<?> apiType) 
    Add new api type.
 public  void addInjectionPoint(InjectionPoint injectionPoint) 
    {@inheritDoc}
 public  void addQualifier(Annotation qualifier) 
    Add new qualifier.
 public  void addStereoType(Annotation stereoType) 
    Add new stereotype.
 public T create(CreationalContext<T> creationalContext) 
    {@inheritDoc}
 abstract protected T createInstance(CreationalContext<T> creationalContext)
    Creates the instance of the bean that has a specific implementation type. Each subclass must define its own create mechanism.
 public  void destroy(T instance,
    CreationalContext<T> creationalContext) 
 protected  void destroyInstance(T instance) 
    Destroy the instance of the bean. Each subclass must define its own destroy mechanism.
 public Class<?> getBeanClass() 
    Get return types of the bean.
 public CreationalContext<T> getCreationalContext() 
    {@inheritDoc}
 public List<Object> getDecoratorStack() 
    {@inheritDoc}
 public Object getDependent(Bean<?> dependentComponent,
    InjectionPoint injectionPoint) 
    Gets the dependent bean instance.
 public InjectionPoint getDependentOwnerInjectionPoint() 
 public Class<Annotation> getDeploymentType() 
 public Set<Annotation> getImplQualifiers() 
    Get qualifiers.
 public Annotation getImplScopeType() 
    Get scope type.
 public IBeanInheritedMetaData getInheritedMetaData() 
    {@inheritDoc}
 public List<InjectionPoint> getInjectionPoint(Member member) 
    {@inheritDoc}
 public Set<InjectionPoint> getInjectionPoints() 
    {@inheritDoc}
 public List<InterceptorData> getInterceptorStack() 
    {@inheritDoc}
 protected WebBeansLogger getLogger() 
 public String getName() 
    Name of the bean.
 public Set<Annotation> getOwbStereotypes() 
    Gets the stereotypes.
 public int getPrecedence() 
    Gets predecence of the bean.
 public Set<Annotation> getQualifiers() 
 public Class<T> getReturnType() 
    Gets type of the producer method.
 public Class<Annotation> getScope() 
 public Set<Annotation> getStereotypes() 
    {@inheritDoc}
 public Annotation getType() 
    Get bean type.
 public Set<Type> getTypes() 
 public WebBeansType getWebBeansType() 
    Get web bean type of the bean.
 public boolean isAlternative() 
    {@inheritDoc}
 public boolean isNullable() 
    {@inheritDoc}
 public boolean isSerializable() 
    {@inheritDoc}
 public boolean isSpecializedBean() 
    {@inheritDoc}
 public  void setCreationalContext(CreationalContext<T> creationalContext) 
    {@inheritDoc}
 public  void setDependentOwnerInjectionPoint(InjectionPoint dependentOwnerInjectionPoint) 
 public  void setImplScopeType(Annotation scopeType) 
    Set scope type.
 protected  void setInheritedMetaData() 
    Sets inherited meta data.
 public  void setName(String name) 
    Set name.
 public  void setNullable(boolean nullable) 
    {@inheritDoc}
 public  void setSerializable(boolean serializable) 
    {@inheritDoc}
 public  void setSpecializedBean(boolean specialized) 
    {@inheritDoc}
 public  void setType(Annotation type) 
    Set bean type.
 public String toString() 
    {@inheritDoc}