X
- T
- S
- public abstract class AbstractProducerBean<X,T,S extends Member> extends AbstractReceiverBean<X,T,S>
alternative, beanManager, name, qualifiers, scope, type, types
BEAN_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, getReceiver, initAlternative
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDefaultName, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getSpecializedBean, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initDefaultQualifiers, initializeAfterBeanDiscovery, initName, initQualifiers, initScopeFromStereotype, initStereotypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize, preSpecialize, specialize
equals, getBeanManager, getId, hashCode, isProxyable, toString
public 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()
AbstractBean
getWeldAnnotated
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 © 2012 Seam Framework. All Rights Reserved.