|
||||||||||
| 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,java.lang.reflect.Method>
org.jboss.weld.bean.ProducerMethod<X,T>
T - public class ProducerMethod<X,T>
Represents a producer method 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 | |
|---|---|
protected |
ProducerMethod(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager)
|
| Method Summary | ||
|---|---|---|
protected void |
checkProducerMethod()
Validates the producer method |
|
protected java.lang.String |
createId(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean)
|
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
protected java.lang.String |
getDefaultName()
Returns the default name |
|
DisposalMethod<X,?> |
getDisposalMethod()
Returns the disposal method |
|
java.lang.String |
getId()
|
|
AbstractBean<?,?> |
getSpecializedBean()
|
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
|
|
WeldMethod<T,? super X> |
getWeldAnnotated()
Gets the annotated item representing the method |
|
protected void |
initDisposalMethod(BeanDeployerEnvironment environment)
Initializes the remove method |
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
|
protected void |
initProducerMethodInjectableParameters()
Initializes the injection points |
|
static
|
of(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager)
Creates a producer method Web Bean |
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
|
| Methods inherited from class org.jboss.weld.bean.AbstractProducerBean |
|---|
checkProducerReturnType, checkReturnValue, create, getBeanClass, getInjectionPoints, getProducer, initScope, initType, initTypes, isPassivationCapableBean, isPassivationCapableDependency, isTypeSerializable, setProducer |
| Methods inherited from class org.jboss.weld.bean.AbstractReceiverBean |
|---|
getDeclaringBean, getReceiver, initAlternative |
| Methods inherited from class org.jboss.weld.bean.RIBean |
|---|
checkType, equals, getBeanManager, hashCode, initializeAfterBeanDiscovery, isProxyRequired, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ProducerMethod(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager)
| Method Detail |
|---|
public static <X,T> ProducerMethod<X,T> of(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager)
method - The underlying method abstractiondeclaringBean - The declaring bean abstractionbeanManager - the current manager
protected java.lang.String createId(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean)
public void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractProducerBean<X,T,java.lang.reflect.Method>protected void initProducerMethodInjectableParameters()
protected void checkProducerMethod()
protected void initDisposalMethod(BeanDeployerEnvironment environment)
public void destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public WeldMethod<T,? super X> getWeldAnnotated()
getWeldAnnotated in class AbstractProducerBean<X,T,java.lang.reflect.Method>protected java.lang.String getDefaultName()
getDefaultName in class AbstractBean<T,java.lang.reflect.Method>public DisposalMethod<X,?> getDisposalMethod()
public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class AbstractBean<T,java.lang.reflect.Method>protected void preSpecialize(BeanDeployerEnvironment environment)
preSpecialize in class AbstractBean<T,java.lang.reflect.Method>protected void specialize(BeanDeployerEnvironment environment)
specialize in class AbstractBean<T,java.lang.reflect.Method>public java.lang.String getId()
getId in interface javax.enterprise.inject.spi.PassivationCapablegetId in class RIBean<T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes in interface javax.enterprise.inject.spi.Bean<T>getStereotypes in class AbstractBean<T,java.lang.reflect.Method>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||