注释类型 SendTo
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface SendTo
Annotation that indicates a method's return value should be converted to aMessage
if necessary and sent to the specified destination.In a typical request/reply scenario, the incoming
Message
may convey the destination to use for the reply. In that case, that destination should take precedence.The annotation may also be placed at class-level if the provider supports it to indicate that all related methods should use this destination if none is specified otherwise.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Stephane Nicoll