Interface EventHandlerSelector
- All Superinterfaces:
Predicate<EventProcessorDefinition.EventHandlerDescriptor>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface EventHandlerSelector
extends Predicate<EventProcessorDefinition.EventHandlerDescriptor>
Functional interface describing a filter for the
EventProcessorDefinition.EventHandlerDescriptor.
Used as part of the EventProcessorDefinition.SelectorStep to create predicates to assign
EventHandlingComponent beans to an
EventProcessor
- Since:
- 5.1.0
- Author:
- Steven van Beelen
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic EventHandlerSelectormatchesNamespaceOnType(String namespace) Implementation of theEventHandlerSelectorthat matchesEventHandlerDescriptorsfor which the givennamespacematches with the value of theNamespaceannotation.
-
Method Details
-
matchesNamespaceOnType
Implementation of theEventHandlerSelectorthat matchesEventHandlerDescriptorsfor which the givennamespacematches with the value of theNamespaceannotation.The
Namespaceis searched for on several levels in the following order:- On the
EventProcessorDefinition.EventHandlerDescriptor.beanType() - The
enclosing classes(from innermost to outermost) of theEventProcessorDefinition.EventHandlerDescriptor.beanType() - The
packageof theEventProcessorDefinition.EventHandlerDescriptor.beanType() - The
moduleof theEventProcessorDefinition.EventHandlerDescriptor.beanType()
- On the
-