|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.common.annotation.AbstractAnnotatedHandlerDefinition<T>
T
- The type of annotation marking the members as handlerspublic abstract class AbstractAnnotatedHandlerDefinition<T extends Annotation>
Abstract implementation of the HandlerDefinition that uses annotations to recognise handler methods or constructors.
Annotations may return Void.class
when the payload type is undefined (as null
is not
allowed as a parameter value).
Constructor Summary | |
---|---|
protected |
AbstractAnnotatedHandlerDefinition(Class<T> annotationType)
Initialize the Definition, using where handlers are annotated with given annotationType . |
Method Summary | |
---|---|
protected abstract Class<?> |
getDefinedPayload(T annotation)
Returns the payload type configured on the given annotated method. |
boolean |
isMessageHandler(AccessibleObject member)
Indicates whether the given member is to be considered a message handler |
Class<?> |
resolvePayloadFor(AccessibleObject member)
Returns the explicitly defined payload of supported messages on the given member |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractAnnotatedHandlerDefinition(Class<T> annotationType)
annotationType
.
annotationType
- The type of annotation that marks the handlersMethod Detail |
---|
public boolean isMessageHandler(AccessibleObject member)
HandlerDefinition
isMessageHandler
in interface HandlerDefinition<AccessibleObject>
member
- The member to verify
true
if the given member
is a message handler, otherwise false
public Class<?> resolvePayloadFor(AccessibleObject member)
HandlerDefinition
member
resolvePayloadFor
in interface HandlerDefinition<AccessibleObject>
member
- the member method
null
if the payload must be deducted from the
handler's parametersprotected abstract Class<?> getDefinedPayload(T annotation)
annotation
- The annotation that defines this method to be a handler
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |