public class ProducerMethodBean<T> extends AbstractProducerBean<T>
AbstractOwbBean.
It is defined as producer method component.
| Modifier and Type | Field and Description |
|---|---|
protected Method |
creatorMethod
Creator method of the parent component
|
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType| Constructor and Description |
|---|
ProducerMethodBean(InjectionTargetBean<P> ownerComponent,
BeanAttributes<T> beanAttributes,
Class<T> returnType,
MethodProducerFactory<P> producerFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(CreationalContext<T> creationalContext) |
Method |
getCreatorMethod()
Gets the creator method.
|
String |
getId()
get the unique Id of the bean.
|
boolean |
isPassivationCapable()
True if passivation capable false otherwise.
|
void |
setCreatorMethod(Method creatorMethod)
Sets the method.
|
checkNullInstance, checkScopeType, getOwnerComponent, getProducer, getReturnType, isPassivationCapabledestroy, equals, getBeanClass, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isSpecializedBean, providedId, setEnabled, setSpecializedBean, toStringgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullableclone, finalize, getClass, notify, notifyAll, wait, wait, waitisNullablegetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeprotected Method creatorMethod
public ProducerMethodBean(InjectionTargetBean<P> ownerComponent, BeanAttributes<T> beanAttributes, Class<T> returnType, MethodProducerFactory<P> producerFactory)
ownerComponent - parent beanreturnType - producer method return typepublic Method getCreatorMethod()
public void setCreatorMethod(Method creatorMethod)
creatorMethod - producer methodpublic String getId()
AbstractOwbBeangetId in interface PassivationCapablegetId in interface OwbBean<T>getId in class AbstractOwbBean<T>public T create(CreationalContext<T> creationalContext)
AbstractOwbBeancreate in interface Contextual<T>create in class AbstractOwbBean<T>public boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.