Annotation Interface Payloads


@Target({PARAMETER,METHOD}) @Retention(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<String> 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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      The expression for matching against nested properties of the payloads.
      Default:
      ""