T
- public class ProducerMethod<X,T> extends AbstractProducerBean<X,T,Method>
AbstractProducerBean.AbstractProducer
alternative, beanManager, name, qualifiers, scope, type, types
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
ProducerMethod(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkProducerMethod()
Validates the producer method
|
protected String |
createId(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean) |
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
protected String |
getDefaultName()
Returns the default name
|
DisposalMethod<X,?> |
getDisposalMethod()
Returns the disposal method
|
String |
getId() |
AbstractBean<?,?> |
getSpecializedBean() |
WeldMethod<T,? super X> |
getWeldAnnotated()
Gets the annotated item representing the method
|
boolean |
hasDefaultProducer()
Returns true if the bean uses the default
Producer ( or InjectionTarget ). |
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
|
boolean |
isProxyable() |
static <X,T> ProducerMethod<X,T> |
of(WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a producer method Web Bean
|
protected void |
preSpecialize(BeanDeployerEnvironment environment) |
protected void |
specialize(BeanDeployerEnvironment environment) |
String |
toString() |
checkProducerReturnType, checkReturnValue, checkType, create, getBeanClass, getInjectionPoints, getProducer, initScope, initType, initTypes, isPassivationCapableBean, isPassivationCapableDependency, isTypeSerializable, setProducer
getDeclaringBean, getReceiver
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initializeAfterBeanDiscovery, initName, initQualifiers, initScopeFromStereotype, initStereotypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize
equals, getBeanManager, getQualifierInstances, hashCode
protected ProducerMethod(WeldMethod<T,? super X> method, AbstractClassBean<X> declaringBean, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
public static <X,T> ProducerMethod<X,T> of(WeldMethod<T,? super X> method, AbstractClassBean<X> declaringBean, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
method
- The underlying method abstractiondeclaringBean
- The declaring bean abstractionbeanManager
- the current managerprotected String createId(WeldMethod<T,? super X> method, AbstractClassBean<X> declaringBean)
public void initialize(BeanDeployerEnvironment environment)
initialize
in class AbstractProducerBean<X,T,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,Method>
protected String getDefaultName()
getDefaultName
in class AbstractBean<T,Method>
public DisposalMethod<X,?> getDisposalMethod()
public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean
in class AbstractBean<T,Method>
protected void preSpecialize(BeanDeployerEnvironment environment)
preSpecialize
in class AbstractBean<T,Method>
protected void specialize(BeanDeployerEnvironment environment)
specialize
in class AbstractBean<T,Method>
public String getId()
public boolean isProxyable()
isProxyable
in class RIBean<T>
public boolean hasDefaultProducer()
AbstractBean
Producer
( or InjectionTarget
). The method returns false if the
producer of the bean was replaced by an extension.hasDefaultProducer
in class AbstractBean<T,Method>
Copyright © 2013 Seam Framework. All rights reserved.