Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Splitters > Using Annotations

Using Annotations

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial