org.springframework.integration.aop
Annotation Type Publisher


@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface Publisher

Annotation to indicate that a method, or all public methods if applied at class-level, should publish Messages whose payloads will be determined by the provided EL expression.

Since:
2.0
Author:
Mark Fisher

Optional Element Summary
 java.lang.String channel
          Name of the Message Channel to which Messages will be published.
 java.lang.String[] headers
          String representations of Spel Expressions to evaluate for adding any headers to the Message.
 java.lang.String value
          String representation of a Spel Expression to evaluate when creating the Message payload.
 

value

public abstract java.lang.String value
String representation of a Spel Expression to evaluate when creating the Message payload. The default will be empty, thereby causing the return value to be used as the payload.

Default:
""

headers

public abstract java.lang.String[] headers
String representations of Spel Expressions to evaluate for adding any headers to the Message. Optional.

Default:
""

channel

public abstract java.lang.String channel
Name of the Message Channel to which Messages will be published.

Default:
""