You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2015/03/03 10:18:17 UTC

svn commit: r942075 - in /websites/production/camel/content: cache/main.pageCache scala-dsl-getting-started.html

Author: buildbot
Date: Tue Mar  3 09:18:16 2015
New Revision: 942075

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/scala-dsl-getting-started.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/scala-dsl-getting-started.html
==============================================================================
--- websites/production/camel/content/scala-dsl-getting-started.html (original)
+++ websites/production/camel/content/scala-dsl-getting-started.html Tue Mar  3 09:18:16 2015
@@ -86,48 +86,27 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><p>Just like the <a shape="rect" href="dsl.html">Java DSL</a>, the Scala DSL has a RouteBuilder class (<code>org.apache.camel.scala.dsl.builder.RouteBuilder</code>) that you can extend to implement your own routes.  This example shows two very simple routes:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<div class="wiki-content maincontent"><p>Just like the <a shape="rect" href="dsl.html">Java DSL</a>, the Scala DSL has a RouteBuilder class (<code>org.apache.camel.scala.dsl.builder.RouteBuilder</code>) that you can extend to implement your own routes. This example shows two very simple routes:</p>    <div class="aui-message hint shadowed information-macro">
+                            <span class="aui-icon icon-hint">Icon</span>
+                <div class="message-content">
+                            <p>From <strong>Camel 2.15</strong> onwards use <span>org.apache.camel.scala.dsl.builder.ScalaRouteBuilder and pass in the CamelContext in the constructor, which will be used by the builder. The old class RouteBuilder is deprecated. </span></p>
+                    </div>
+    </div>
+<p>&#160;</p><p>&#160;</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 class MyRouteBuilder extends RouteBuilder {
   &quot;direct:a&quot; --&gt; &quot;mock:a&quot;
   &quot;direct:b&quot; to &quot;mock:b&quot;      
 }
 ]]></script>
-</div></div>
-
-<p>If you compare this to the Java <a shape="rect" href="dsl.html">DSL</a>, you notice:</p>
-<ul><li>there is no configure() method to override</li><li>a route starts directly with a URI instead of <code>from(uri)</code></li><li><code>&#8594;</code> is just an alias for <code>to</code></li></ul>
-
-
-<h3 id="ScalaDSL-GettingStarted-SettingtherouteID">Setting the route ID</h3>
-
-<p>To assign the unique ID to the Scala route, insert the <code>routeId</code> method invocation after the "from" part of the DSL.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
- &quot;direct:a&quot; routeId &quot;route-b&quot; to &quot;mock:b&quot;
+</div></div><p>If you compare this to the Java <a shape="rect" href="dsl.html">DSL</a>, you notice:</p><ul><li>there is no configure() method to override</li><li>a route starts directly with a URI instead of <code>from(uri)</code></li><li><code>&#8594;</code> is just an alias for <code>to</code></li></ul><h3 id="ScalaDSL-GettingStarted-SettingtherouteID">Setting the route ID</h3><p>To assign the unique ID to the Scala route, insert the <code>routeId</code> method invocation after the "from" part of the DSL.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ &quot;direct:a&quot; routeId &quot;route-b&quot; to &quot;mock:b&quot;
 ]]></script>
-</div></div>
-
-<h3 id="ScalaDSL-GettingStarted-CreatinganewCamelScalaproject">Creating a new Camel Scala project</h3>
-
-<p>Camel offers <a shape="rect" href="camel-maven-archetypes.html">Maven archetypes</a> that allow you to quickly setup a new project.</p>
-
-<p>To do this, you can execute the following Maven goal from the command line (using Maven 3.0.3 or better):</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-mvn archetype:generate
+</div></div><h3 id="ScalaDSL-GettingStarted-CreatinganewCamelScalaproject">Creating a new Camel Scala project</h3><p>Camel offers <a shape="rect" href="camel-maven-archetypes.html">Maven archetypes</a> that allow you to quickly setup a new project.</p><p>To do this, you can execute the following Maven goal from the command line (using Maven 3.0.3 or better):</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[mvn archetype:generate
 ]]></script>
-</div></div>
-
-<p>This runs Maven interactively - just type <code>camel</code> and press &lt;Enter&gt; to filter for Camel-related archetypes.<br clear="none">
-From the list, pick the number for <code>camel-archetype-scala</code>, then fill in the remaining details (such as the Camel version, <em>et&#160;cetera</em>).</p>
-
-<p>The generated project has a "readme" file with more instructions, and is ready to compile and run from Maven using: </p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-mvn compile exec:java
+</div></div><p>This runs Maven interactively - just type <code>camel</code> and press &lt;Enter&gt; to filter for Camel-related archetypes.<br clear="none"> From the list, pick the number for <code>camel-archetype-scala</code>, then fill in the remaining details (such as the Camel version, <em>et&#160;cetera</em>).</p><p>The generated project has a "readme" file with more instructions, and is ready to compile and run from Maven using:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[mvn compile exec:java
 ]]></script>
 </div></div></div>
         </td>