T - bean type infopublic class AbstractProducerBean<T> extends AbstractOwbBean<T> implements javax.enterprise.inject.spi.PassivationCapable
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType| Constructor and Description |
|---|
AbstractProducerBean(Class<?> ownerBeanClass,
WebBeansContext webBeansContext,
WebBeansType webBeansType,
BeanAttributes<T> beanAttributes,
Class<T> returnType,
ProducerFactory<?> producerFactory)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNullInstance(Object instance,
String producerName)
Check null control.
|
protected void |
checkScopeType(String producerName)
Check passivation check.
|
void |
dispose(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
javax.enterprise.inject.spi.Producer<T> |
getProducer() |
Class<T> |
getReturnType()
Gets type of the producer method/field or the bean class if it's not a producer.
|
protected boolean |
isPassivationCapable(Class<?> returnType,
Integer modifiers) |
create, destroy, getBeanClass, getId, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isPassivationCapable, isSpecializedBean, setEnabled, setSpecializedBean, toStringgetName, getQualifiers, getScope, getStereotypes, getTypes, isNullablepublic AbstractProducerBean(Class<?> ownerBeanClass, WebBeansContext webBeansContext, WebBeansType webBeansType, BeanAttributes<T> beanAttributes, Class<T> returnType, ProducerFactory<?> producerFactory)
returnType - bean type infoownerBeanClass - class which contains this producer method or fieldpublic javax.enterprise.inject.spi.Producer<T> getProducer()
getProducer in interface OwbBean<T>public Class<T> getReturnType()
AbstractOwbBeangetReturnType in interface OwbBean<T>getReturnType in class AbstractOwbBean<T>AbstractOwbBean.getBeanClass()public void dispose(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
protected void checkNullInstance(Object instance, String producerName)
instance - bean instanceprotected void checkScopeType(String producerName)
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.