T - Type of the field declerationpublic class ProducerFieldBean<T> extends AbstractProducerBean<T> implements IBeanHasParent<T>
ownerComponentapiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, webBeansType| Constructor and Description |
|---|
ProducerFieldBean(InjectionTargetBean<?> ownerComponent,
Class<T> returnType)
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.
|
protected T |
createDefaultInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Default producer method creation.
|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation
type.
|
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.
|
destroyBean, dispose, equals, getParent, getParentInstance, getParentInstanceFromContext, hashCode, isPassivationCapable, validatePassivationDependenciesaddApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, destroyInstance, getBeanClass, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdispose, getParentpublic ProducerFieldBean(InjectionTargetBean<?> ownerComponent, Class<T> returnType)
returnType - type of the field declerationprotected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
createInstance in class AbstractProducerBean<T>creationalContext - the contextual instance shall be created inprotected T createDefaultInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
creationalContext - creational contextpublic 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-2013 The Apache Software Foundation. All Rights Reserved.