T
- public class ProducerMethod<X,T> extends AbstractProducerBean<X,T,Method>
type
beanManager
Modifier | Constructor and Description |
---|---|
protected |
ProducerMethod(org.jboss.weld.serialization.spi.BeanIdentifier identifier,
javax.enterprise.inject.spi.BeanAttributes<T> attributes,
EnhancedAnnotatedMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
DisposalMethod<X,?> disposalMethod,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupAfterBoot()
This method is called after the container is started allowing the bean to
release any resources that are only required at boot time
|
javax.enterprise.inject.spi.AnnotatedMethod<? super X> |
getAnnotated()
Returns the annotated item the bean represents
|
EnhancedAnnotatedMethod<T,? super X> |
getEnhancedAnnotated()
Gets the annotated item representing the method
|
boolean |
isProxyable() |
static <X,T> ProducerMethod<X,T> |
of(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
EnhancedAnnotatedMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
DisposalMethod<X,?> disposalMethod,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a producer method Web Bean
|
protected void |
specialize() |
String |
toString() |
checkReturnValue, checkType, create, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, initType, internalInitialize, isPassivationCapableBean, isPassivationCapableDependency, isTypeSerializable
checkSpecialization, getProducer, getSpecializedBeans, getType, initializeAfterBeanDiscovery, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitialize, preSpecialize, setProducer
getBeanManager, getQualifierInstances, initialize, isNormalScoped
attributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
protected ProducerMethod(org.jboss.weld.serialization.spi.BeanIdentifier identifier, javax.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedMethod<T,? super X> method, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
public static <X,T> ProducerMethod<X,T> of(javax.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedMethod<T,? super X> method, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
method
- The underlying method abstractiondeclaringBean
- The declaring bean abstractionbeanManager
- the current managerpublic javax.enterprise.inject.spi.AnnotatedMethod<? super X> getAnnotated()
AbstractBean
getAnnotated
in class AbstractProducerBean<X,T,Method>
public EnhancedAnnotatedMethod<T,? super X> getEnhancedAnnotated()
getEnhancedAnnotated
in class AbstractProducerBean<X,T,Method>
public void cleanupAfterBoot()
RIBean
cleanupAfterBoot
in class RIBean<T>
protected void specialize()
specialize
in class AbstractBean<T,Method>
public String toString()
toString
in class CommonBean<T>
public boolean isProxyable()
isProxyable
in class RIBean<T>
Copyright © 2016. All rights reserved.