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 functionModifier 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–2020. All rights reserved.