camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Added camel-eclipse docs to gitbook
Date Sat, 05 Mar 2016 10:05:32 GMT
Repository: camel
Updated Branches:
  refs/heads/master e3cf60579 -> 73f3ee4b8


Added camel-eclipse 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/73f3ee4b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/73f3ee4b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/73f3ee4b

Branch: refs/heads/master
Commit: 73f3ee4b851d8586d350232b5ef26bd524618210
Parents: e3cf605
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Sat Mar 5 11:04:21 2016 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Sat Mar 5 11:04:43 2016 +0100

----------------------------------------------------------------------
 .../camel-eclipse/src/main/docs/eclipse.adoc    | 66 ++++++++++++++++++++
 docs/user-manual/en/SUMMARY.md                  |  1 +
 2 files changed, 67 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/73f3ee4b/components/camel-eclipse/src/main/docs/eclipse.adoc
----------------------------------------------------------------------
diff --git a/components/camel-eclipse/src/main/docs/eclipse.adoc b/components/camel-eclipse/src/main/docs/eclipse.adoc
new file mode 100644
index 0000000..f3c22c9
--- /dev/null
+++ b/components/camel-eclipse/src/main/docs/eclipse.adoc
@@ -0,0 +1,66 @@
+[[camel-eclipse-camel-eclipse]]
+Eclipse Component
+~~~~~~~~~~~~~~~~~
+
+*Available as of Camel 2.3*
+
+The link:camel-eclipse.html[camel-eclipse] is a component which allows
+you to run Camel with Eclipse RCP. This component is needed due Eclipse
+classloading challenges. The component is a specialized Camel
+link:pluggable-class-resolvers.html[Pluggable Class Resolvers] to remedy
+this.
+
+The resolver is provided in the class
+`org.apache.camel.component.eclipse.EclipsePackageScanClassResolver` in
+the `camel-eclipse` jar file.
+
+[[camel-eclipse-UsingwithJavaDSL]]
+Using with Java DSL
+^^^^^^^^^^^^^^^^^^^
+
+You need to configure the resolver on the
+link:camelcontext.html[CamelContext] which is done like this:
+
+[source,java]
+-----------------------------------------------------------------------------------
+  PackageScanClassResolver eclipseResolver = new EclipsePackageScanClassResolver();
+
+  CamelContext context = new DefaultCamelContext();
+  context.setPackageScanClassResolver(eclipseResolver);
+-----------------------------------------------------------------------------------
+
+[[camel-eclipse-UsingwithSpringXML]]
+Using with Spring XML
+^^^^^^^^^^^^^^^^^^^^^
+
+When using Spring XML its just a matter of defining a spring bean with
+the Eclipse class resolver as shown:
+
+[source,xml]
+----------------------------------------------------------------------------------------------------------
+   <bean id="eclipseResolver" class="org.apache.camel.component.eclipse.EclipsePackageScanClassResolver"/>
+
+  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
+    <route>
+      <from uri="seda:start"/>
+      <to uri="mock:result"/>
+    </route>
+  </camelContext>
+----------------------------------------------------------------------------------------------------------
+
+[[camel-eclipse-Dependencies]]
+Dependencies
+^^^^^^^^^^^^
+
+Maven users will need to add the following dependency to their pom.xml
+for this component:
+
+[source,xml]
+------------------------------------------------------------
+<dependency>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>camel-eclipse</artifactId>
+    <version>x.x.x</version>
+    <!-- use the same version as your Camel core version -->
+</dependency>
+------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/camel/blob/73f3ee4b/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index c6f30b0..6a5fa5c 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -121,6 +121,7 @@
 	* [Docker](docker.adoc)
 	* [Dozer](dozer.adoc)
 	* [Dropbox](dropbox.adoc)
+	* [Eclipse](eclipse.adoc)
 	* [Ironmq](ironmq.adoc)
 	* [JMS](jms.adoc)
 	* [Metrics](metrics.adoc)


Mime
View raw message