Interface ProcessorDefinition.EventHandlerDescriptor

Enclosing interface:
ProcessorDefinition

public static interface ProcessorDefinition.EventHandlerDescriptor
Describes an event handler component that can be assigned to an event processor.

This descriptor provides access to various aspects of the event handler bean, allowing processor definitions to make decisions about which handlers to assign based on bean name, type, or other characteristics.

  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.beans.factory.config.BeanDefinition
    Returns the Spring BeanDefinition for this event handler.
    Returns the Spring bean name of this event handler.
    Returns the Java type of this event handler bean.
    Returns the component builder for this event handler.
    Resolves and returns the actual event handler bean instance.
  • Method Details

    • beanName

      @Nonnull String beanName()
      Returns the Spring bean name of this event handler.
      Returns:
      The bean name.
    • beanDefinition

      org.springframework.beans.factory.config.BeanDefinition beanDefinition()
      Returns the Spring BeanDefinition for this event handler.
      Returns:
      The bean definition.
    • beanType

      @Nullable Class<?> beanType()
      Returns the Java type of this event handler bean.
      Returns:
      The bean type.
    • resolveBean

      @Nonnull Object resolveBean()
      Resolves and returns the actual event handler bean instance.
      Returns:
      The event handler bean.
    • component

      @Nonnull ComponentBuilder<Object> component()
      Returns the component builder for this event handler.
      Returns:
      The component builder.