org.springframework.integration.annotation
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. The @Payload and @Header annotations can be used in conjunction with this to determine the content of the Message.

Since:
2.0

Optional Element Summary
 java.lang.String channel
          Name of the Message Channel to which Messages will be published.
 

channel

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

Default:
""