Resolves checkstyle errors for eip-* (#1069)
* Reduces checkstyle errors in eip-aggregator * Reduces checkstyle errors in eip-message-channel * Reduces checkstyle errors in eip-publish-subscribe * Reduces checkstyle errors in eip-splitter * Reduces checkstyle errors in eip-wire-tap
This commit is contained in:
committed by
Ilkka Seppälä
parent
f2c91eb836
commit
7c888e8886
@ -30,23 +30,24 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
|
||||
/**
|
||||
* It is very common in integration systems that incoming messages consists of many items bundled together. For example
|
||||
* an invoice document contains multiple invoice lines describing transaction (quantity, name of provided
|
||||
* service/sold goods, price etc.). Such bundled messages may not be accepted by other systems. This is where splitter
|
||||
* pattern comes in handy. It will take the whole document, split it based on given criteria and send individual
|
||||
* items to the endpoint.
|
||||
* It is very common in integration systems that incoming messages consists of many items bundled
|
||||
* together. For example an invoice document contains multiple invoice lines describing transaction
|
||||
* (quantity, name of provided service/sold goods, price etc.). Such bundled messages may not be
|
||||
* accepted by other systems. This is where splitter pattern comes in handy. It will take the whole
|
||||
* document, split it based on given criteria and send individual items to the endpoint.
|
||||
*
|
||||
* <p>
|
||||
* Splitter allows you to split messages based on defined criteria. It takes original message, process it and send
|
||||
* multiple parts to the output channel. It is not defined if it should keep the order of items though.
|
||||
* Splitter allows you to split messages based on defined criteria. It takes original message,
|
||||
* process it and send multiple parts to the output channel. It is not defined if it should keep the
|
||||
* order of items though.
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point. It starts Spring Boot application and using Apache Camel it auto-configures routes.
|
||||
* Program entry point. It starts Spring Boot application and using Apache Camel it
|
||||
* auto-configures routes.
|
||||
*
|
||||
* @param args command line args
|
||||
*/
|
||||
|
@ -29,19 +29,19 @@ import org.springframework.stereotype.Component;
|
||||
/**
|
||||
* Sample splitter route definition.
|
||||
*
|
||||
* <p>
|
||||
* It consumes messages out of the <i>direct:entry</i> entry point and forwards them to <i>direct:endpoint</i>.
|
||||
* Route accepts messages having body of array or collection of objects. Splitter component split message body and
|
||||
* forwards single objects to the endpoint.
|
||||
* </p>
|
||||
* <p>It consumes messages out of the <i>direct:entry</i> entry point and forwards them to
|
||||
* <i>direct:endpoint</i>. Route accepts messages having body of array or collection of objects.
|
||||
* Splitter component split message body and forwards single objects to the endpoint.
|
||||
*
|
||||
* In this example input/output endpoints names are stored in <i>application.properties</i> file.
|
||||
* <p>In this example input/output endpoints names are stored in <i>application.properties</i>
|
||||
* file.
|
||||
*/
|
||||
@Component
|
||||
public class SplitterRoute extends RouteBuilder {
|
||||
|
||||
/**
|
||||
* Configures the route
|
||||
* Configures the route.
|
||||
*
|
||||
* @throws Exception in case of exception during configuration
|
||||
*/
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user