org.springframework.integration.aop
Annotation Type Publisher


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

Indicates that the method's return value, thrown exception, or invocation arguments should be published to the specified channel. The value will only be published if non-null. The default payload type is 'return value'.

Author:
Mark Fisher

Required Element Summary
 java.lang.String channel
          name of the channel where Messages should be sent
 
Optional Element Summary
 MessagePublishingInterceptor.PayloadType payloadType
          type of payload to intercept and send
 

Element Detail

channel

public abstract java.lang.String channel
name of the channel where Messages should be sent

payloadType

public abstract MessagePublishingInterceptor.PayloadType payloadType
type of payload to intercept and send

See Also:
MessagePublishingInterceptor.PayloadType
Default:
RETURN_VALUE