Spring Integration

org.springframework.integration.annotation
Annotation Type Payloads


@Target(value={PARAMETER,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface Payloads

This annotation marks a method parameter as being a list of message payloads, for POJO handlers that deal with lists of messages (e.g. aggregators and release strategies).

Example: void foo(@Payloads("city.name") List cityName) - will map the value of the 'name' property of the 'city' property of all the payload objects in the input list.

Since:
2.0
Author:
Dave Syer

Optional Element Summary
 java.lang.String value
          Expression for matching against nested properties of the payloads.
 

value

public abstract java.lang.String value
Expression for matching against nested properties of the payloads.

Default:
""

Spring Integration