X - T - S - public abstract class AbstractProducerBean<X,T,S extends Member> extends AbstractReceiverBean<X,T,S>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractProducerBean.AbstractProducer |
alternative, beanManager, name, qualifiers, scope, type, typesBEAN_ID_PREFIX, BEAN_ID_SEPARATOR| Constructor and Description |
|---|
AbstractProducerBean(String idSuffix,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager,
ServiceRegistry services)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkProducerReturnType()
Validates the producer method
|
protected void |
checkReturnValue(T instance)
Validates the return value
|
protected void |
checkType() |
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
Class<?> |
getBeanClass()
The bean class of the managed bean or session bean or
of the bean that declares the producer method or field.
|
Set<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time. |
Producer<T> |
getProducer() |
abstract WeldMember<T,? super X,S> |
getWeldAnnotated()
Returns the annotated item the bean represents
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
protected void |
initScope() |
protected void |
initType()
Initializes the type
|
protected void |
initTypes()
Initializes the API types
|
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
protected boolean |
isTypeSerializable(Class<?> clazz) |
void |
setProducer(Producer<T> producer)
This operation is *not* threadsafe, and should not be called outside
bootstrap
|
getDeclaringBean, getReceiveraddInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDefaultName, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getSpecializedBean, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, hasDefaultProducer, initAlternative, initDefaultQualifiers, initializeAfterBeanDiscovery, initName, initQualifiers, initScopeFromStereotype, initStereotypes, isAlternative, isDependent, isInitialized, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize, preSpecialize, specializeequals, getBeanManager, getId, getQualifierInstances, hashCode, isNormalScoped, isProxyable, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroypublic AbstractProducerBean(String idSuffix, AbstractClassBean<X> declaringBean, BeanManagerImpl beanManager, ServiceRegistry services)
declaringBean - The declaring beanbeanManager - The Bean managerpublic abstract WeldMember<T,? super X,S> getWeldAnnotated()
AbstractBeangetWeldAnnotated in class AbstractReceiverBean<X,T,S extends Member>public Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>getBeanClass in class RIBean<T>protected void initTypes()
initTypes in class AbstractBean<T,S extends Member>protected void initType()
protected void checkProducerReturnType()
public void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractReceiverBean<X,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.getInjectionPoints in interface Bean<T>getInjectionPoints in class RIBean<T>protected void checkReturnValue(T instance)
instance - The instance to validateprotected void checkType()
checkType in class AbstractBean<T,S extends Member>protected boolean isTypeSerializable(Class<?> clazz)
protected void initScope()
initScope in class AbstractBean<T,S extends Member>public void setProducer(Producer<T> producer)
producer - public T create(CreationalContext<T> creationalContext)
creationalContext - the context in which this instance is being createdCopyright © 2013 Seam Framework. All Rights Reserved.