org.axonframework.util
Class AbstractHandlerInspector
java.lang.Object
org.axonframework.util.AbstractHandlerInspector
- Direct Known Subclasses:
- AbstractHandlerInvoker
public abstract class AbstractHandlerInspector
- extends Object
Abstract utility class that inspects handler methods.
- Since:
- 0.7
- Author:
- Allard Buijze
|
Constructor Summary |
AbstractHandlerInspector(Class<? extends Annotation> annotationType)
Initialize an AbstractHandlerInspector, where the given annotationType is used to annotate the Event
Handler methods. |
|
Method Summary |
protected Method |
findHandlerMethod(Class<?> targetType,
Class<?> parameterType)
Returns the handler method that handles objects of the given parameterType. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHandlerInspector
public AbstractHandlerInspector(Class<? extends Annotation> annotationType)
- Initialize an AbstractHandlerInspector, where the given
annotationType is used to annotate the Event
Handler methods.
- Parameters:
annotationType - The annotation used on the Event Handler methods.
findHandlerMethod
protected Method findHandlerMethod(Class<?> targetType,
Class<?> parameterType)
- Returns the handler method that handles objects of the given
parameterType. Returns
null is no such method is found.
- Parameters:
targetType - The type on which to find a suitable handlerparameterType - The parameter type to find a handler for
- Returns:
- the handler method for the given parameterType
Copyright © 2011. All Rights Reserved.