camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Add camel-boon docs to gitbook
Date Fri, 29 Jan 2016 14:46:22 GMT
Repository: camel
Updated Branches:
  refs/heads/master 35ba17b8a -> 1eb6b41c4


Add camel-boon docs to gitbook


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1eb6b41c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1eb6b41c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1eb6b41c

Branch: refs/heads/master
Commit: 1eb6b41c434c90d6f8f8d1e02e71c92605ce45dc
Parents: 35ba17b
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Fri Jan 29 15:33:12 2016 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Fri Jan 29 15:33:12 2016 +0100

----------------------------------------------------------------------
 components/camel-boon/src/main/docs/boon.adoc | 58 ++++++++++++++++++++++
 docs/user-manual/en/SUMMARY.md                |  1 +
 2 files changed, 59 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/1eb6b41c/components/camel-boon/src/main/docs/boon.adoc
----------------------------------------------------------------------
diff --git a/components/camel-boon/src/main/docs/boon.adoc b/components/camel-boon/src/main/docs/boon.adoc
new file mode 100644
index 0000000..6f39d0e
--- /dev/null
+++ b/components/camel-boon/src/main/docs/boon.adoc
@@ -0,0 +1,58 @@
+[[Boon-Boon]]
+Boon
+~~~~
+
+*Available in Camel 2.16*
+
+Boon is a Data Format which uses the
+http://richardhightower.github.io/site/Boon/Welcome.html[Boon
+JSON] marshalling library to unmarshal an JSON payload into Java objects
+or to marshal Java objects into an JSON payload. Boon aims to be a
+simple
+and https://github.com/RichardHightower/json-parsers-benchmark[fast
+parser] than other common parsers currently used.
+
+[[Boon-UsingtheJavaDSL]]
+Using the Java DSL
+^^^^^^^^^^^^^^^^^^
+
+[source,java]
+------------------------------------------------------------------------
+DataFormat boonDataFormat = new BoonDataFormat("com.acme.model.Person");
+
+from("activemq:My.Queue")
+  .unmarshal(boonDataFormat)
+  .to("mqseries:Another.Queue");
+------------------------------------------------------------------------
+
+[[Boon-UsingBlueprintXML]]
+Using Blueprint XML
+^^^^^^^^^^^^^^^^^^^
+
+[source,java]
+---------------------------------------------------------------------------------
+<bean id="boonDataFormat" class="org.apache.camel.component.boon.BoonDataFormat">
+  <argument value="com.acme.model.Person"/>
+</bean>
+ 
+<camelContext id="camel" xmlns="http://camel.apache.org/schema/blueprint">
+  <route>
+    <from uri="activemq:My.Queue"/>
+    <unmarshal ref="boonDataFormat"/>
+    <to uri="mqseries:Another.Queue"/>
+  </route>
+</camelContext>
+---------------------------------------------------------------------------------
+
+[[Boon-Dependencies]]
+Dependencies
+^^^^^^^^^^^^
+
+[source,java]
+-------------------------------------
+<dependency>
+  <groupId>org.apache.camel</groupId>
+  <artifactId>camel-boon</artifactId>
+  <version>x.x.x</version>
+</dependency>
+-------------------------------------

http://git-wip-us.apache.org/repos/asf/camel/blob/1eb6b41c/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index 93dd7c8..3d8f09c 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -96,6 +96,7 @@
 	* [Bean-validator](bean-validator.adoc)
 	* [Bindy](bindy.adoc)
 	* [Blueprint](blueprint-testing.adoc)
+	* [Boon](boon.adoc)
 	* [CDI](cdi.adoc)
 	* [JMS](jms.adoc)
 	* [Metrics](metrics.adoc)


Mime
View raw message