You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/01/19 12:21:15 UTC
[3/4] camel git commit: CAMEL-10531 fixed adoc
CAMEL-10531 fixed adoc
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/82733d11
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/82733d11
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/82733d11
Branch: refs/heads/master
Commit: 82733d1128bcf2ded1b59d70745c7886f96eebc7
Parents: 8270e3e
Author: Tomohisa Igarashi <tm...@gmail.com>
Authored: Thu Jan 19 11:02:07 2017 +0900
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Jan 19 13:20:55 2017 +0100
----------------------------------------------------------------------
camel-core/src/main/docs/transformer.adoc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/82733d11/camel-core/src/main/docs/transformer.adoc
----------------------------------------------------------------------
diff --git a/camel-core/src/main/docs/transformer.adoc b/camel-core/src/main/docs/transformer.adoc
index aff0207..543c58c 100644
--- a/camel-core/src/main/docs/transformer.adoc
+++ b/camel-core/src/main/docs/transformer.adoc
@@ -82,8 +82,8 @@ BindyDataFormat bindy = new BindyDataFormat();
bindy.setType(BindyType.Csv);
bindy.setClassType(com.example.Order.class);
transformer()
- .from(com.example.Order.class)
- .to("csv:CSVOrder")
+ .fromType(com.example.Order.class)
+ .toType("csv:CSVOrder")
.withDataFormat(bindy);
-------------------------------------------------------------------
@@ -111,8 +111,8 @@ Here is an example to specify endpoint URI in Java DSL:
[source,java]
-------------------------------------------------------------------
transformer()
- .from("xml")
- .to("json")
+ .fromType("xml")
+ .toType("json")
.withUri("dozer:myDozer?mappingFile=myMapping.xml...");
-------------------------------------------------------------------
@@ -140,8 +140,8 @@ Java DSL:
[source,java]
-------------------------------------------------------------------
transformer()
- .from("xml")
- .to("json")
+ .fromType("xml")
+ .toType("json")
.withJava(com.example.MyCustomTransformer.class);
-------------------------------------------------------------------
@@ -164,8 +164,8 @@ Java DSL:
[source,java]
-------------------------------------------------------------------
transformer()
- .from("xml:ABCOrder")
- .to("xml:XYZOrder")
+ .fromType("xml:ABCOrder")
+ .toType("xml:XYZOrder")
.withUri("xslt:transform.xsl");
-------------------------------------------------------------------