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(InjectionTargetBean<?> ownerComponent,
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) |
InjectionTargetBean<?> |
getOwnerBean() |
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, toString
getName, getQualifiers, getScope, getStereotypes, getTypes, isNullable
public AbstractProducerBean(InjectionTargetBean<?> ownerComponent, WebBeansType webBeansType, BeanAttributes<T> beanAttributes, Class<T> returnType, ProducerFactory<?> producerFactory)
returnType
- bean type infoownerComponent
- bean which contains this producer method or fieldpublic InjectionTargetBean<?> getOwnerBean()
public javax.enterprise.inject.spi.Producer<T> getProducer()
getProducer
in interface OwbBean<T>
public Class<T> getReturnType()
AbstractOwbBean
getReturnType
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–2016 The Apache Software Foundation. All rights reserved.