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 |
|---|---|
protected void |
checkNullInstance(Object instance)
Check null instance.
|
protected void |
checkScopeType()
Check scope type passivation controls.
|
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.
|
dispose, getProducer, getReturnType, isPassivationCapabledestroy, getBeanClass, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isSpecializedBean, setEnabled, setSpecializedBean, toStringgetName, getQualifiers, getScope, getStereotypes, getTypes, isNullablepublic 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 fieldprotected void checkNullInstance(Object instance)
instance - bean instanceprotected void checkScopeType()
public boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>public String getId()
AbstractOwbBeanCopyright © 2008–2014 The Apache Software Foundation. All rights reserved.