Annotation Type InboundChannelAdapter


@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
public @interface InboundChannelAdapter
Indicates that a method is capable of producing a Message or Message payload.

A method annotated with @InboundChannelAdapter can't accept any parameters.

Return values from the annotated method may be of any type. If the return value is not a Message, a Message will be created with that object as its payload.

The result Message will be sent to the provided value().

@InboundChannelAdapter is an analogue of <int:inbound-channel-adapter/>. With that the PollerMetadata is required to to initiate the method invocation. Or poller() should be provided, or the PollerMetadata.DEFAULT_POLLER bean has to be configured in the application context.

Since:
4.0
Author:
Artem Bilan, Gary Russell