org.springframework.integration.annotation
Annotation Type MessageTarget


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface MessageTarget

Indicates that a method is capable of consuming messages. The method must accept a single parameter that is either a Message or an Object of the expected message payload type. The method itself should define a void return, and the enclosing class may also be annotated with @MessageEndpoint.

Author:
Mark Fisher