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

      public EnhancedAnnotatedMethod<T,? super X> getEnhancedAnnotated()
      Gets the annotated item representing the method
      Specified by:
      getEnhancedAnnotated 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>
    • specialize

      protected void specialize()
      Overrides:
      specialize in class AbstractBean<T,Method>
    • toString

      public String toString()
      Overrides:
      toString in class CommonBean<T>
    • isProxyable

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