T
- The type of annotation marking the members as handlerspublic abstract class AbstractAnnotatedHandlerDefinition<T extends Annotation> extends Object implements HandlerDefinition<AccessibleObject>
Void.class
when the payload type is undefined (as null
is not
allowed as a parameter value).Modifier | Constructor and Description |
---|---|
protected |
AbstractAnnotatedHandlerDefinition(Class<T> annotationType)
Initialize the Definition, using where handlers are annotated with given
annotationType . |
Modifier and Type | Method and Description |
---|---|
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() |
public boolean isMessageHandler(AccessibleObject member)
HandlerDefinition
isMessageHandler
in interface HandlerDefinition<AccessibleObject>
member
- The member to verifytrue
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 methodnull
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 handlerCopyright © 2010-2014. All Rights Reserved.