org.apache.webbeans.component.xml
Class XMLProducerBean<T>

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<T>
      extended by org.apache.webbeans.component.AbstractProducerBean<T>
          extended by org.apache.webbeans.component.ProducerMethodBean<T>
              extended by org.apache.webbeans.component.xml.XMLProducerBean<T>
All Implemented Interfaces:
Contextual<T>, Bean<T>, IBeanHasParent<T>, OwbBean<T>

public class XMLProducerBean<T>
extends ProducerMethodBean<T>


Field Summary
 
Fields inherited from class org.apache.webbeans.component.ProducerMethodBean
creatorMethod, disposalMethod
 
Fields inherited from class org.apache.webbeans.component.AbstractProducerBean
ownerComponent
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
XMLProducerBean(InjectionTargetBean<?> parent, Class<T> returnType)
           
 
Method Summary
 void addDisposalMethodInjectionPointModel(XMLInjectionPointModel model)
           
 void addProducerMethodInjectionPointModel(XMLInjectionPointModel model)
           
protected  T createInstance(CreationalContext<T> creationalContext)
          Creates the instance of the bean that has a specific implementation type.
protected  void destroyInstance(T instance)
           
 Type[] getActualTypeArguments()
          Gets actual type arguments.
 void setActualTypeArguments(Type[] actualTypeArguments)
           
 
Methods inherited from class org.apache.webbeans.component.ProducerMethodBean
checkNullInstance, checkScopeType, createDefaultInstance, destroyInstance, dispose, disposeDefault, getCreatorMethod, getDisposalMethod, getId, isPassivationCapable, setCreatorMethod, setDisposalMethod, toString
 
Methods inherited from class org.apache.webbeans.component.AbstractProducerBean
destroyBean, getInjectionPoints, getParent, getParentInstance, getParentInstanceFromContext, isPassivationCapable
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, getBeanClass, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, validatePassivationDependencies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLProducerBean

public XMLProducerBean(InjectionTargetBean<?> parent,
                       Class<T> returnType)
Method Detail

addProducerMethodInjectionPointModel

public void addProducerMethodInjectionPointModel(XMLInjectionPointModel model)

addDisposalMethodInjectionPointModel

public void addDisposalMethodInjectionPointModel(XMLInjectionPointModel model)

getActualTypeArguments

public Type[] getActualTypeArguments()
Description copied from class: ProducerMethodBean
Gets actual type arguments.

Overrides:
getActualTypeArguments in class ProducerMethodBean<T>
Returns:
actual type arguments

setActualTypeArguments

public void setActualTypeArguments(Type[] actualTypeArguments)

destroyInstance

protected void destroyInstance(T instance)

createInstance

protected T createInstance(CreationalContext<T> creationalContext)
Description copied from class: ProducerMethodBean
Creates the instance of the bean that has a specific implementation type. Each subclass must define its own create mechanism.

Overrides:
createInstance in class ProducerMethodBean<T>
Parameters:
creationalContext - the contextual instance shall be created in
Returns:
instance of the bean


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