X - T - S - public abstract class AbstractProducerBean<X,T,S extends Member> extends AbstractBean<T,S>
typebeanManager| Constructor and Description |
|---|
AbstractProducerBean(BeanAttributes<T> attributes,
BeanIdentifier identifier,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager,
ServiceRegistry services)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.
|
abstract AnnotatedMember<? super X> |
getAnnotated()
Returns the annotated item the bean represents
|
Class<?> |
getBeanClass()
The bean class of the managed bean or session bean or of the bean that declares the producer method or
field.
|
AbstractClassBean<X> |
getDeclaringBean()
Returns the declaring bean
|
abstract EnhancedAnnotatedMember<T,?,S> |
getEnhancedAnnotated()
Returns the weld-enhanced annotated item the bean represents.
|
Set<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects representing injection points of the bean, that
will be validated by the container at initialization time. |
protected T |
checkReturnValue(T instance)
Validates the return value
|
protected void |
checkType() |
protected void |
initType()
Initializes the type
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
protected boolean |
isTypeSerializable(Object instance) |
getProducer, getSpecializedBeans, getType, checkSpecialization, initializeAfterBeanDiscovery, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitialize, preSpecialize, setProducer, specializecleanupAfterBoot, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, isProxyable, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, toString, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativepublic AbstractProducerBean(BeanAttributes<T> attributes, BeanIdentifier identifier, AbstractClassBean<X> declaringBean, BeanManagerImpl beanManager, ServiceRegistry services)
declaringBean - The declaring beanbeanManager - The Bean managerpublic Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>getBeanClass in class RIBean<T>protected void initType()
public void internalInitialize(BeanDeployerEnvironment environment)
internalInitialize in class AbstractBean<T,S extends Member>public boolean isPassivationCapableBean()
isPassivationCapableBean in class RIBean<T>public boolean isPassivationCapableDependency()
isPassivationCapableDependency in class RIBean<T>public Set<InjectionPoint> getInjectionPoints()
BeanInjectionPoint objects representing injection points of the bean, that
will be validated by the container at initialization time.protected T checkReturnValue(T instance)
instance - The instance to validateprotected void checkType()
checkType in class AbstractBean<T,S extends Member>protected boolean isTypeSerializable(Object instance)
public T create(CreationalContext<T> creationalContext)
creationalContext - the context in which this instance is being createdpublic void destroy(T instance, CreationalContext<T> creationalContext)
ContextualCreationalContext.release() to allow the container to destroy dependent objects of
the contextual instance.public AbstractClassBean<X> getDeclaringBean()
public abstract AnnotatedMember<? super X> getAnnotated()
AbstractBeangetAnnotated in class AbstractBean<T,S extends Member>public abstract EnhancedAnnotatedMember<T,?,S> getEnhancedAnnotated()
AbstractBeanIllegalStateException at runtime.getEnhancedAnnotated in class AbstractBean<T,S extends Member>Copyright © 2016. All Rights Reserved.