Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You can also use the @Splitter
annotation to let the framework know about your annotated splitter bean.
You should decorate the method with the @Splitter
annotation as shown in the following example:
@Component
public class AnnonatedEncryptedTradeSplitter{
@Splitter
public List<ITrade> splitMyMessageToTrades(Message<?> message) {
..
}
}
The method returns a collection of objects, each of them wrapped
in a Message as payload.