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,
javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
Class<T> returnType,
MethodProducerFactory<P> producerFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToStringInfo(StringBuilder builder)
For producer beans we add the info about the owner component
|
T |
create(javax.enterprise.context.spi.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, isPassivationCapable, providedIddestroy, equals, getBeanClass, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isSpecializedBean, setEnabled, setSpecializedBean, toStringgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullableprotected Method creatorMethod
public ProducerMethodBean(InjectionTargetBean<P> ownerComponent, javax.enterprise.inject.spi.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()
AbstractOwbBeanpublic T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractOwbBeancreate in interface javax.enterprise.context.spi.Contextual<T>create in class AbstractOwbBean<T>public boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>protected void addToStringInfo(StringBuilder builder)
addToStringInfo in class AbstractOwbBean<T>Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.