org.springframework.integration.annotation
Annotation Type Splitter


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

Indicates that a method is capable of splitting a single message or message payload to produce multiple messages or payloads.

A method annotated with @Splitter 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 with elements of any type. If the type is not a Message, each will be used as the payload for creating a new Message.


Optional Element Summary
 java.lang.String inputChannel
           
 java.lang.String outputChannel
           
 

inputChannel

public abstract java.lang.String inputChannel
Default:
""

outputChannel

public abstract java.lang.String outputChannel
Default:
""