Interface BeanMethodElement

All Superinterfaces:
AnnotatedElement, AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, Described, Element, MemberElement, MethodElement, MutableAnnotationMetadataDelegate<Element>, Named

public interface BeanMethodElement extends MethodElement
Represents a configurable bean method.
Since:
3.0.0
Author:
graemerocher
  • Method Details

    • intercept

      default @NonNull BeanMethodElement intercept(AnnotationValue<?>... annotationValue)
      Intercept the method.
      Parameters:
      annotationValue - The annotation to intercept
      Returns:
      This bean method
      Since:
      3.5.2
    • executable

      default @NonNull BeanMethodElement executable()
      Make the method executable.
      Returns:
      This bean method
    • executable

      default @NonNull BeanMethodElement executable(boolean processOnStartup)
      Make the method executable.
      Parameters:
      processOnStartup - Whether to process on startup
      Returns:
      This bean method
      Since:
      3.4.0
    • inject

      default @NonNull BeanMethodElement inject()
      Make the method injected.
      Returns:
      This bean method
    • preDestroy

      default @NonNull BeanMethodElement preDestroy()
      Make the method a PreDestroy hook.
      Returns:
      This bean method
    • postConstruct

      default @NonNull BeanMethodElement postConstruct()
      Make the method a PostConstruct hook.
      Returns:
      This bean method
    • withParameters

      default @NonNull BeanMethodElement withParameters(@NonNull Consumer<BeanParameterElement[]> parameterConsumer)
      Process the bean parameters.
      Parameters:
      parameterConsumer - The parameter consumer
      Returns:
      This bean method
    • getParameters

      @NonNull BeanParameterElement[] getParameters()
      Specified by:
      getParameters in interface MethodElement
      Returns:
      The method parameters