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:
jakarta.enterprise.context.spi.Contextual<T>,jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.inject.spi.PassivationCapable,WeldBean<T>
Represents a producer method bean
- Author:
- Pete Muir
-
Field Summary
Fields inherited from class org.jboss.weld.bean.AbstractProducerBean
explicitPriorityFields inherited from class org.jboss.weld.bean.AbstractBean
typeFields inherited from class org.jboss.weld.bean.RIBean
beanManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProducerMethod(org.jboss.weld.serialization.spi.BeanIdentifier identifier, jakarta.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 Summary
Modifier and TypeMethodDescriptionvoidThis method is called after the container is started allowing the bean to release any resources that are only required at boot timejakarta.enterprise.inject.spi.AnnotatedMethod<? super X>Returns the annotated item the bean representsEnhancedAnnotatedMethod<T,? super X> Gets the annotated item representing the methodbooleanstatic <X,T> ProducerMethod<X, T> of(jakarta.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 Beanprotected voidtoString()Methods inherited from class org.jboss.weld.bean.AbstractProducerBean
checkReturnValue, checkType, create, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, getPriority, initType, internalInitialize, isPassivationCapableBean, isPassivationCapableDependency, isTypeSerializable, processExplicitPriorityMethods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getProducer, getSpecializedBeans, getType, initializeAfterBeanDiscovery, isDependent, isIgnoreFinalMethods, isProxyRequired, isSpecializing, postSpecialize, preInitialize, preSpecialize, setIgnoreFinalMethods, setProducerMethods inherited from class org.jboss.weld.bean.RIBean
getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesMethods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, unwrapMethods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from interface jakarta.enterprise.inject.spi.PassivationCapable
getId
-
Constructor Details
-
ProducerMethod
protected ProducerMethod(org.jboss.weld.serialization.spi.BeanIdentifier identifier, jakarta.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 Details
-
of
public static <X,T> ProducerMethod<X,T> of(jakarta.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- Parameters:
method- The underlying method abstractiondeclaringBean- The declaring bean abstractionbeanManager- the current manager- Returns:
- A producer Web Bean
-
getAnnotated
Description copied from class:AbstractBeanReturns the annotated item the bean represents- Specified by:
getAnnotatedin classAbstractProducerBean<X,T, Method> - Returns:
- The annotated item
-
getEnhancedAnnotated
Gets the annotated item representing the method- Specified by:
getEnhancedAnnotatedin classAbstractProducerBean<X,T, Method> - Returns:
- The annotated item
-
cleanupAfterBoot
public void cleanupAfterBoot()Description copied from class:RIBeanThis method is called after the container is started allowing the bean to release any resources that are only required at boot time- Specified by:
cleanupAfterBootin classRIBean<T>
-
specialize
protected void specialize()- Overrides:
specializein classAbstractBean<T,Method>
-
toString
- Overrides:
toStringin classCommonBean<T>
-
isProxyable
public boolean isProxyable()- Specified by:
isProxyablein classRIBean<T>
-