T - Type of the field declerationpublic class ProducerFieldBean<T> extends AbstractProducerBean<T>
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType| Constructor and Description |
|---|
ProducerFieldBean(InjectionTargetBean<?> ownerComponent,
javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
Class<T> returnType,
javax.enterprise.inject.spi.ProducerFactory<T> producerFactory)
Defines the new producer field component.
|
| 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) |
Field |
getCreatorField()
Gets creator field.
|
String |
getId()
get the unique Id of the bean.
|
boolean |
isPassivationCapable()
True if passivation capable false otherwise.
|
void |
setProducerField(Field field)
Set producer field.
|
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, isNullablepublic ProducerFieldBean(InjectionTargetBean<?> ownerComponent, javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes, Class<T> returnType, javax.enterprise.inject.spi.ProducerFactory<T> producerFactory)
returnType - type of the field declerationpublic T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
create in interface javax.enterprise.context.spi.Contextual<T>create in class AbstractOwbBean<T>public Field getCreatorField()
public void setProducerField(Field field)
field - producer fieldpublic boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>public String getId()
AbstractOwbBeanprotected void addToStringInfo(StringBuilder builder)
addToStringInfo in class AbstractOwbBean<T>Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.