T - bean type infopublic abstract class AbstractProducerBean<T> extends AbstractOwbBean<T> implements IBeanHasParent<T>
| Modifier and Type | Field and Description |
|---|---|
protected InjectionTargetBean<?> |
ownerComponent
Owner of the producer field component
|
apiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, webBeansType| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProducerBean(WebBeansType type,
Class<T> returnType,
InjectionTargetBean<?> ownerComponent)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation
type.
|
protected <K> void |
destroyBean(javax.enterprise.inject.spi.Bean<?> bean,
Object instance,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Destroys bean.
|
void |
dispose(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
boolean |
equals(Object object) |
InjectionTargetBean<?> |
getParent() |
protected Object |
getParentInstance(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Returns producer bean's owner bean instance.
|
protected Object |
getParentInstanceFromContext(javax.enterprise.context.spi.CreationalContext<?> creationalContext) |
int |
hashCode() |
protected boolean |
isPassivationCapable(Class<?> returnType,
Integer modifiers) |
void |
validatePassivationDependencies()
If bean is passivation capable, it validate all of its dependencies.
|
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, destroyInstance, getBeanClass, getId, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isPassivationCapable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toStringprotected InjectionTargetBean<?> ownerComponent
protected AbstractProducerBean(WebBeansType type, Class<T> returnType, InjectionTargetBean<?> ownerComponent)
type - webbeans typrreturnType - bean type infoownerComponent - owner beanpublic InjectionTargetBean<?> getParent()
getParent in interface IBeanHasParent<T>public void dispose(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
dispose in interface IBeanHasParent<T>protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
createInstance in class AbstractOwbBean<T>creationalContext - the contextual instance shall be created inprotected <K> void destroyBean(javax.enterprise.inject.spi.Bean<?> bean,
Object instance,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
K - bean type infobean - bean infoinstance - bean instanceprotected Object getParentInstance(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
protected Object getParentInstanceFromContext(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
public void validatePassivationDependencies()
OwbBeanvalidatePassivationDependencies in interface OwbBean<T>validatePassivationDependencies in class AbstractOwbBean<T>public int hashCode()
hashCode in class AbstractOwbBean<T>public boolean equals(Object object)
equals in class AbstractOwbBean<T>Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.