|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.common.annotation.MethodMessageHandlerInspector
public final class MethodMessageHandlerInspector
Utility class that inspects handler methods for a given class and annotation type. For each annotated method, it keeps track of a MethodMessageHandler that describes the capabilities of that method (in terms of supported messages).
| Method Summary | |
|---|---|
MethodMessageHandler |
findHandlerMethod(Message message)
Returns the handler method that handles objects of the given parameterType. |
List<MethodMessageHandler> |
getHandlers()
Returns the list of handlers found on target type. |
static MethodMessageHandlerInspector |
getInstance(Class<?> handlerClass,
Class<? extends Annotation> annotationType,
boolean allowDuplicates)
Returns a MethodMessageHandlerInspector for the given handlerClass that contains handler methods
annotated with the given annotationType. |
Class<?> |
getTargetType()
Returns the targetType on which handler methods are invoked. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MethodMessageHandlerInspector getInstance(Class<?> handlerClass,
Class<? extends Annotation> annotationType,
boolean allowDuplicates)
handlerClass that contains handler methods
annotated with the given annotationType. The allowDuplicates will indicate whether it
is acceptable to have multiple handlers listening to Messages with the same payload type. Basically, this should
always be false, unless some a property other than the payload of the Message is used to route the Message to a
handler.
handlerClass - The Class containing the handler methods to evaluateannotationType - The annotations demarcating handler methodsallowDuplicates - Indicates whether to accept multiple handlers listening to Messages with the same payload
type
public MethodMessageHandler findHandlerMethod(Message message)
parameterType. Returns
null is no such method is found.
message - The message to find a handler for
public List<MethodMessageHandler> getHandlers()
public Class<?> getTargetType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||