Interface EventProcessorDefinition.EventHandlerDescriptor
- Enclosing interface:
EventProcessorDefinition
public static interface EventProcessorDefinition.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 TypeMethodDescriptionorg.springframework.beans.factory.config.BeanDefinitionReturns the SpringBeanDefinitionfor this event handler.beanName()Returns the Spring bean name of this event handler.@Nullable Class<?> beanType()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
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 SpringBeanDefinitionfor 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
Object resolveBean()Resolves and returns the actual event handler bean instance.- Returns:
- The event handler bean.
-
component
ComponentBuilder<Object> component()Returns the component builder for this event handler.- Returns:
- The component builder.
-