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

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

Direct Known Subclasses:
    EjbBean, NewBean, ManagedBean, ExtensionBean, XMLManagedBean

Abstract class for owning observer methods.
Field Summary
protected  boolean fromRealizes   
     
    protected  InjectionTarget<T> injectionTarget    InjectionTargt instance. If this is not null, it is used for creating instance. 
    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 AbstractInjectionTargetBean(WebBeansType webBeansType,
        Class<T> returnType) 
      Creates a new observer owner component.
      Parameters:
      webBeansType - webbean type
      returnType - bean class type
    Method from org.apache.webbeans.component.AbstractInjectionTargetBean Summary:
    addInjectedField,   addInjectedMethod,   addObservableMethod,   afterConstructor,   beforeConstructor,   createComponentInstance,   createDefaultInstance,   createInstance,   destroyComponentInstance,   destroyInstance,   getInjectedFields,   getInjectedMethods,   getInjectionPoints,   getInjectionTarget,   getLogger,   getObservableMethods,   injectFields,   injectMethods,   injectResources,   isFromRealizes,   isInjectionTargetSet,   postConstruct,   postConstructDefault,   preDestroy,   preDestroyDefault,   setFromRealizes,   setInjectionTarget
    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.AbstractInjectionTargetBean Detail:
     public  void addInjectedField(Field field) 
      Add new injected field.
     public  void addInjectedMethod(Method method) 
      Add new injected method.
     public  void addObservableMethod(Method observerMethod) 
      {@inheritDoc}
     protected  void afterConstructor(T instance,
        CreationalContext<T> creationalContext) 
      Called after bean instance is created.
     protected  void beforeConstructor() 
      Called before constructor.
     abstract protected T createComponentInstance(CreationalContext<T> creationalContext)
      Sub-classes must override this method to create bean instance.
     protected T createDefaultInstance(CreationalContext<T> creationalContext) 
      Returns bean instance.
     protected T createInstance(CreationalContext<T> creationalContext) 
      {@inheritDoc}
     protected  void destroyComponentInstance(T instance) 
      Sub-classes must override this method to destroy bean instance.
     protected  void destroyInstance(T instance) 
      {@inheritDoc}
     public Set<Field> getInjectedFields() 
      Gets injected fields.
     public Set<Method> getInjectedMethods() 
      Gets injected methods.
     public Set<InjectionPoint> getInjectionPoints() 
      {@inheritDoc}
     public InjectionTarget<T> getInjectionTarget() 
      Returns injection target.
     protected WebBeansLogger getLogger() 
      Returns bean logger instance.
     public Set<Method> getObservableMethods() 
      {@inheritDoc}
     public  void injectFields(T instance,
        CreationalContext<T> creationalContext) 
      Injects fields of the bean after constructing.
     public  void injectMethods(T instance,
        CreationalContext<T> creationalContext) 
     public  void injectResources(T instance,
        CreationalContext<T> creationalContext) 
      {@inheritDoc}
     public boolean isFromRealizes() 
    Deprecated!
     protected boolean isInjectionTargetSet() 
      Returns true if injection target instance set, false otherwise.
     public  void postConstruct(T instance) 
      {@inheritDoc}
     protected  void postConstructDefault(T instance) 
      Default post construct.
     public  void preDestroy(T instance) 
      {@inheritDoc}
     protected  void preDestroyDefault(T instance) 
      Default predestroy.
     public  void setFromRealizes(boolean fromRealizes) 
    Deprecated!
     public  void setInjectionTarget(InjectionTarget<T> injectionTarget) 
      Sets injection target instance.