Skip to content

Commit 767f41a

Browse files
author
adkm
committed
iluwatar#173 Removed unneeded dependencies
1 parent 9c7ee5e commit 767f41a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

eip-splitter/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@
4040
<artifactId>camel-core</artifactId>
4141
<version>${camel.version}</version>
4242
</dependency>
43-
<dependency>
44-
<groupId>org.apache.camel</groupId>
45-
<artifactId>camel-csv</artifactId>
46-
<version>${camel.version}</version>
47-
</dependency>
4843

4944
<dependency>
5045
<groupId>org.apache.camel</groupId>

eip-splitter/src/main/java/com/iluwatar/eip/splitter/App.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@
77
import org.springframework.context.ConfigurableApplicationContext;
88

99
/**
10+
* It is very common in integration systems that incoming messages consists of many items bundled together. For example
11+
* an invoice document contains multiple invoice lines describing transaction (quantity, name of provided
12+
* service/sold goods, price etc.). Such bundled messages may not be accepted by other systems. This is where splitter
13+
* pattern comes in handy. It will take the whole document, split it based on given criteria and send individual
14+
* items to the endpoint.
1015
*
1116
* <p>
17+
* Splitter allows you to split messages based on defined criteria. It takes original message, process it and send
18+
* multiple parts to the output channel. It is not defined if it should keep the order of items though.
1219
* </p>
20+
*
1321
*/
1422
@SpringBootApplication
1523
public class App {

eip-splitter/src/main/java/com/iluwatar/eip/splitter/routes/SplitterRoute.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
* Sample splitter route definition.
88
*
99
* <p>
10+
* It consumes messages out of the <i>direct:entry</i> entry point and forwards them to <i>direct:endpoint</i>.
11+
* Route accepts messages having body of array or collection of objects. Splitter component split message body and
12+
* forwards single objects to the endpoint.
1013
* </p>
1114
*
1215
* In this example input/output endpoints names are stored in <i>application.properties</i> file.

0 commit comments

Comments
 (0)