Package org.jboss.weld.bean
Class ProducerMethod<X,T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.RIBean<T>
-
- org.jboss.weld.bean.AbstractBean<T,S>
-
- org.jboss.weld.bean.AbstractProducerBean<X,T,Method>
-
- org.jboss.weld.bean.ProducerMethod<X,T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Contextual<T>
,Bean<T>
,BeanAttributes<T>
,PassivationCapable
,WeldBean<T>
public class ProducerMethod<X,T> extends AbstractProducerBean<X,T,Method>
Represents a producer method bean- Author:
- Pete Muir
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.AbstractBean
type
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProducerMethod(org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanAttributes<T> attributes, EnhancedAnnotatedMethod<T,? super X> method, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 timeAnnotatedMethod<? super X>
getAnnotated()
Returns the annotated item the bean representsEnhancedAnnotatedMethod<T,? super X>
getEnhancedAnnotated()
Gets the annotated item representing the methodboolean
isProxyable()
static <X,T>
ProducerMethod<X,T>of(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 Beanprotected void
specialize()
String
toString()
-
Methods inherited from class org.jboss.weld.bean.AbstractProducerBean
checkReturnValue, checkType, create, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, initType, internalInitialize, isPassivationCapableBean, isPassivationCapableDependency, isTypeSerializable
-
Methods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getProducer, getSpecializedBeans, getType, initializeAfterBeanDiscovery, isDependent, isIgnoreFinalMethods, isProxyRequired, isSpecializing, postSpecialize, preInitialize, preSpecialize, setIgnoreFinalMethods, setProducer
-
Methods inherited from class org.jboss.weld.bean.RIBean
getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributes
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, isNullable, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface jakarta.enterprise.inject.spi.PassivationCapable
getId
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
-
-
-
Constructor Detail
-
ProducerMethod
protected ProducerMethod(org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanAttributes<T> attributes, EnhancedAnnotatedMethod<T,? super X> method, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
-
-
Method Detail
-
of
public static <X,T> ProducerMethod<X,T> of(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- Parameters:
method
- The underlying method abstractiondeclaringBean
- The declaring bean abstractionbeanManager
- the current manager- Returns:
- A producer Web Bean
-
getAnnotated
public AnnotatedMethod<? super X> getAnnotated()
Description copied from class:AbstractBean
Returns the annotated item the bean represents- Specified by:
getAnnotated
in classAbstractProducerBean<X,T,Method>
- Returns:
- The annotated item
-
getEnhancedAnnotated
public EnhancedAnnotatedMethod<T,? super X> getEnhancedAnnotated()
Gets the annotated item representing the method- Specified by:
getEnhancedAnnotated
in classAbstractProducerBean<X,T,Method>
- Returns:
- The annotated item
-
cleanupAfterBoot
public void cleanupAfterBoot()
Description copied from class:RIBean
This method is called after the container is started allowing the bean to release any resources that are only required at boot time- Specified by:
cleanupAfterBoot
in classRIBean<T>
-
specialize
protected void specialize()
- Overrides:
specialize
in classAbstractBean<T,Method>
-
toString
public String toString()
- Overrides:
toString
in classCommonBean<T>
-
isProxyable
public boolean isProxyable()
- Specified by:
isProxyable
in classRIBean<T>
-
-