|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,S>
org.jboss.weld.bean.AbstractReceiverBean<X,T,S>
org.jboss.weld.bean.AbstractProducerBean<X,T,S>
X - T - S - public abstract class AbstractProducerBean<X,T,S extends java.lang.reflect.Member>
The implicit producer bean
| Field Summary |
|---|
| Fields inherited from class org.jboss.weld.bean.AbstractBean |
|---|
alternative, beanManager, name, qualifiers, scope, type, types |
| Fields inherited from class org.jboss.weld.bean.RIBean |
|---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
| Constructor Summary | |
|---|---|
AbstractProducerBean(java.lang.String idSuffix,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
checkProducerReturnType()
Validates the producer method |
protected void |
checkReturnValue(T instance)
Validates the return value |
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the bean |
java.lang.Class<?> |
getBeanClass()
|
java.util.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(java.lang.Class<?> clazz)
|
void |
setProducer(javax.enterprise.inject.spi.Producer<T> producer)
This operation is *not* threadsafe, and should not be called outside bootstrap |
| Methods inherited from class org.jboss.weld.bean.AbstractReceiverBean |
|---|
getDeclaringBean, getReceiver, initAlternative |
| Methods inherited from class org.jboss.weld.bean.RIBean |
|---|
checkType, equals, getBeanManager, getId, hashCode, initializeAfterBeanDiscovery, isProxyRequired, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.enterprise.context.spi.Contextual |
|---|
destroy |
| Constructor Detail |
|---|
public AbstractProducerBean(java.lang.String idSuffix,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager)
declaringBean - The declaring beanbeanManager - The Bean manager| Method Detail |
|---|
public abstract WeldMember<T,? super X,S> getWeldAnnotated()
AbstractBean
getWeldAnnotated in class AbstractReceiverBean<X,T,S extends java.lang.reflect.Member>public java.lang.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 java.lang.reflect.Member>protected void initType()
protected void checkProducerReturnType()
public void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractReceiverBean<X,T,S extends java.lang.reflect.Member>public boolean isPassivationCapableBean()
isPassivationCapableBean in class RIBean<T>public boolean isPassivationCapableDependency()
isPassivationCapableDependency in class RIBean<T>public java.util.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 boolean isTypeSerializable(java.lang.Class<?> clazz)
protected void initScope()
initScope in class AbstractBean<T,S extends java.lang.reflect.Member>public void setProducer(javax.enterprise.inject.spi.Producer<T> producer)
producer - public javax.enterprise.inject.spi.Producer<T> getProducer()
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||