@Target(value=METHOD)
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface Router
A method annotated with @Router may accept a parameter of type
Message or of the expected
Message payload's type. Any type conversion supported by
SimpleTypeConverter will be applied to
the Message payload if necessary. Header values can also be passed as
Message parameters by using the @Header parameter annotation.
Return values from the annotated method may be either a Collection or Array
whose elements are either
channels or
Strings. In the latter case, the endpoint hosting this router will attempt
to resolve each channel name with the Channel Registry.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
defaultOutputChannel |
java.lang.String |
inputChannel |