public final class HandlerComparator extends Object
AnnotatedHandlerInspector
to sort MessageHandlingMember
entity members.
The ordering among MessageHandlingMember
s through this comparator is defined as follows:
MessageHandlingMember.priority()
, favoring the largest numberMessageHandlingMember.payloadType()
, favoring the most specific handler.Executable.toGenericString()
of the actual message handling functionMessageHandlingMembers
both act on results rather, steps 2 through 4 are reversed.Modifier and Type | Method and Description |
---|---|
static Comparator<MessageHandlingMember<?>> |
instance()
Returns the singleton comparator managed by the HandlerComparator class.
|
public static Comparator<MessageHandlingMember<?>> instance()
Copyright © 2010–2023. All rights reserved.