@Documented @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,CONSTRUCTOR,METHOD}) @HasHandlerAttributes public @interface MessageHandler
Message
s.
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–2023. All rights reserved.