org.apache.webbeans.component.xml
Class XMLProducerBean<T>
java.lang.Object
org.apache.webbeans.component.AbstractOwbBean<T>
org.apache.webbeans.component.AbstractProducerBean<T>
org.apache.webbeans.component.ProducerMethodBean<T>
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>
| 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 |
| 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.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 |
XMLProducerBean
public XMLProducerBean(InjectionTargetBean<?> parent,
Class<T> returnType)
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.