T
- Type of the field declerationpublic class ProducerFieldBean<T> extends AbstractProducerBean<T>
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType
Constructor and Description |
---|
ProducerFieldBean(InjectionTargetBean<?> ownerComponent,
BeanAttributesImpl<T> beanAttributes,
Class<T> returnType,
ProducerFactory<T> producerFactory)
Defines the new producer field component.
|
Modifier and Type | Method and Description |
---|---|
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, dispose, getOwnerBean, getProducer, getReturnType, isPassivationCapable
destroy, getBeanClass, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isSpecializedBean, setEnabled, setSpecializedBean, toString
getName, getQualifiers, getScope, getStereotypes, getTypes, isNullable
public ProducerFieldBean(InjectionTargetBean<?> ownerComponent, BeanAttributesImpl<T> beanAttributes, Class<T> returnType, 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()
OwbBean
isPassivationCapable
in interface OwbBean<T>
isPassivationCapable
in class AbstractOwbBean<T>
public String getId()
AbstractOwbBean
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.