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,
org.jboss.weld.bootstrap.api.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(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the bean
|
Class<?> |
getBeanClass() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.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, toStringpublic AbstractProducerBean(String idSuffix, AbstractClassBean<X> declaringBean, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.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()
getBeanClass in interface javax.enterprise.inject.spi.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<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints in interface javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.Producer<T> producer)
producer - public javax.enterprise.inject.spi.Producer<T> getProducer()
Copyright © 2014 Seam Framework. All Rights Reserved.