@Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,CONSTRUCTOR,METHOD}) @Documented public @interface MessageHandler
Messages.
 It is not recommended to put this annotation on methods or constructors directly. Instead, put this annotation on another annotation that expresses the type of message handled.
| Modifier and Type | Optional Element and Description | 
|---|---|
Class<? extends Message> | 
messageType
Specifies the type of message that can be handled by the member method. 
 | 
Class<?> | 
payloadType
Specifies the type of message payload that can be handled by the member method. 
 | 
Copyright © 2010–2018. All rights reserved.