Class ChainedMessageHandlerInterceptorMember<T>

java.lang.Object
org.axonframework.messaging.core.annotation.ChainedMessageHandlerInterceptorMember<T>
Type Parameters:
T - The type that declares the handlers in this chain.
All Implemented Interfaces:
MessageHandlerInterceptorMemberChain<T>

public class ChainedMessageHandlerInterceptorMember<T> extends Object implements MessageHandlerInterceptorMemberChain<T>
A MessageHandlerInterceptorMemberChain implementation that constructs a chain of instances of itself based on a given iterator of MessageHandlingMembers.
Since:
4.4.0
Author:
Allard Buijze
  • Constructor Details

    • ChainedMessageHandlerInterceptorMember

      public ChainedMessageHandlerInterceptorMember(Class<?> handlerType, Iterator<MessageHandlingMember<? super T>> iterator)
      Constructs a chained message handling interceptor for the given handlerType, constructing a chain from the given iterator.

      The iterator should at least> have a single MessageHandlingMember. If there are more MessageHandlingMembers present in the given iterator, this constructor will be invoked again.

      Parameters:
      handlerType - The type for which to construct a message handler interceptor chain.
      iterator - The MessageHandlingMembers from which to construct the chain.
  • Method Details