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

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

Direct Known Subclasses:
    ProducerFieldBean

Abstract class for producer components.
Field Summary
protected  AbstractBean<?> ownerComponent    Owner of the producer field component 
protected  Producer<T> producer    Producer instance responsible for produce and dispose 
Fields inherited from org.apache.webbeans.component.AbstractBean:
name,  type,  implScopeType,  implQualifiers,  apiTypes,  webBeansType,  returnType,  stereoTypes,  specializedBean,  interceptorStack,  decoratorStack,  serializable,  nullable,  injectionPoints,  inheritedMetaData,  dependentOwnerInjectionPoint,  creationalContext
Constructor:
 protected AbstractProducerBean(WebBeansType type,
    Class<T> returnType,
    AbstractBean<?> ownerComponent) 
    Create a new instance.
    Parameters:
    type - webbeans typr
    returnType - bean type info
    ownerComponent - owner bean
Method from org.apache.webbeans.component.AbstractProducerBean Summary:
createInstance,   destroyBean,   destroyInstance,   dispose,   getInjectionPoints,   getParent,   getParentInstance,   getProducer,   isProducerSet,   setProducer
Methods from org.apache.webbeans.component.AbstractBean:
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.AbstractProducerBean Detail:
 protected T createInstance(CreationalContext<T> creationalContext) 
    {@inheritDoc}
 protected  void destroyBean(Bean<?> bean,
    Object instance) 
    Destroys bean.
 protected  void destroyInstance(T instance) 
    {@inheritDoc}
 public  void dispose(T instance) 
    {@inheritDoc}
 public Set<InjectionPoint> getInjectionPoints() 
    {@inheritDoc}
 public AbstractBean<?> getParent() 
    {@inheritDoc}
 protected Object getParentInstance() 
    Returns producer bean's owner bean instance.
 public Producer<T> getProducer() 
    Gets producer instance.
 protected boolean isProducerSet() 
    Returns true if producer is set.
 public  void setProducer(Producer<T> producer) 
    Sets producer instance.