Class 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>

    public class ProducerMethod<X,​T>
    extends AbstractProducerBean<X,​T,​Method>
    Represents a producer method bean
    Author:
    Pete Muir
    • Constructor Detail

      • 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 Detail

      • 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 abstraction
        declaringBean - The declaring bean abstraction
        beanManager - the current manager
        Returns:
        A producer Web Bean
      • getAnnotated

        public jakarta.enterprise.inject.spi.AnnotatedMethod<? super X> getAnnotated()
        Description copied from class: AbstractBean
        Returns the annotated item the bean represents
        Specified by:
        getAnnotated in class AbstractProducerBean<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 class RIBean<T>
      • isProxyable

        public boolean isProxyable()
        Specified by:
        isProxyable in class RIBean<T>