T - bean type infopublic class AbstractProducerBean<T> extends AbstractOwbBean<T> implements 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,
CreationalContext<T> creationalContext) |
InjectionTargetBean<?> |
getOwnerBean() |
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, isNullableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdgetName, getQualifiers, getScope, getStereotypes, getTypes, isNullablepublic 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 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, CreationalContext<T> creationalContext)
protected void checkNullInstance(Object instance, String producerName)
instance - bean instanceprotected void checkScopeType(String producerName)
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.