X
- T
- S
- public abstract class AbstractProducerBean<X,T,S extends Member> extends AbstractBean<T,S>
type
beanManager
Constructor and Description |
---|
AbstractProducerBean(BeanAttributes<T> attributes,
BeanIdentifier identifier,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager,
ServiceRegistry services)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected T |
checkReturnValue(T instance)
Validates the return value
|
protected void |
checkType() |
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 void |
initType()
Initializes the type
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
protected boolean |
isTypeSerializable(Object instance) |
checkSpecialization, getProducer, getSpecializedBeans, getType, initializeAfterBeanDiscovery, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitialize, preSpecialize, setProducer, specialize
cleanupAfterBoot, getBeanManager, getQualifierInstances, initialize, isNormalScoped, isProxyable
attributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, toString, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
public AbstractProducerBean(BeanAttributes<T> attributes, BeanIdentifier identifier, AbstractClassBean<X> declaringBean, BeanManagerImpl beanManager, ServiceRegistry services)
declaringBean
- The declaring beanbeanManager
- The Bean managerpublic Class<?> getBeanClass()
Bean
getBeanClass
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()
Bean
InjectionPoint
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)
Contextual
CreationalContext.release()
to allow the container to destroy dependent objects of
the contextual instance.instance
- the contextual instance to destroycreationalContext
- the context in which this instance was createdpublic AbstractClassBean<X> getDeclaringBean()
public abstract AnnotatedMember<? super X> getAnnotated()
AbstractBean
getAnnotated
in class AbstractBean<T,S extends Member>
public abstract EnhancedAnnotatedMember<T,?,S> getEnhancedAnnotated()
AbstractBean
IllegalStateException
at runtime.getEnhancedAnnotated
in class AbstractBean<T,S extends Member>
Copyright © 2013 Seam Framework. All Rights Reserved.