T - bean type infopublic class AbstractProducerBean<T> extends AbstractOwbBean<T>
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType| Constructor and Description |
|---|
AbstractProducerBean(InjectionTargetBean<?> ownerComponent,
WebBeansType webBeansType,
javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
Class<T> returnType,
javax.enterprise.inject.spi.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,
Object instance)
Check passivation check.
|
InjectionTargetBean<?> |
getOwnerComponent() |
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) |
protected String |
providedId() |
addToStringInfo, create, destroy, equals, getBeanClass, getId, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isPassivationCapable, isSpecializedBean, setEnabled, setSpecializedBean, toStringgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullablepublic AbstractProducerBean(InjectionTargetBean<?> ownerComponent, WebBeansType webBeansType, javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes, Class<T> returnType, javax.enterprise.inject.spi.ProducerFactory<?> producerFactory)
returnType - bean type infopublic javax.enterprise.inject.spi.Producer<T> getProducer()
public Class<T> getReturnType()
AbstractOwbBeangetReturnType in interface OwbBean<T>getReturnType in class AbstractOwbBean<T>AbstractOwbBean.getBeanClass()public InjectionTargetBean<?> getOwnerComponent()
protected String providedId()
providedId in class AbstractOwbBean<T>protected void checkNullInstance(Object instance, String producerName)
instance - bean instanceprotected void checkScopeType(String producerName, Object instance)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.