Author: buildbot
Date: Thu Jul 5 13:29:32 2012
New Revision: 824534
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/bean.html
websites/production/camel/content/book-component-appendix.html
websites/production/camel/content/book-in-one-page.html
websites/production/camel/content/cache/main.pageCache
Modified: websites/production/camel/content/bean.html
==============================================================================
--- websites/production/camel/content/bean.html (original)
+++ websites/production/camel/content/bean.html Thu Jul 5 13:29:32 2012
@@ -171,6 +171,37 @@ The source for the bean is just a plain
</div></div>
<p>Camel will use <a shape="rect" href="bean-binding.html" title="Bean
Binding">Bean Binding</a> to invoke the <tt>sayHello</tt> method, by converting
the Exchange's In body to the <tt>String</tt> type and storing the output of
the method on the Exchange Out body.</p>
+<h3><a shape="rect" name="Bean-JavaDSLbeansyntax"></a>Java DSL bean syntax</h3>
+
+<p>Java DSL comes with syntactic sugar for the <a shape="rect"
href="bean.html" title="Bean">Bean</a> component. Instead of specifying the
bean explicitly as the endpoint (i.e. <tt>to("bean:beanName")</tt>) you can use
the following syntax:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+<span class="code-comment">// Send message to the bean endpoint
+</span><span class="code-comment">// and invoke method resolved using Bean
Binding.
+</span>from(<span class="code-quote">"direct:start"</span>).beanRef(<span
class="code-quote">"beanName"</span>);
+
+<span class="code-comment">// Send message to the bean endpoint
+</span><span class="code-comment">// and invoke given method.
+</span>from(<span class="code-quote">"direct:start"</span>).beanRef(<span
class="code-quote">"beanName"</span>, <span
class="code-quote">"methodName"</span>);
+</pre>
+</div></div>
+
+<p>Instead of passing name of the reference to the bean (so that Camel will
lookup for it in the registry), you can specify the bean itself:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+<span class="code-comment">// Send message to the given bean instance.
+</span>from(<span class="code-quote">"direct:start"</span>).bean(<span
class="code-keyword">new</span> ExampleBean());
+
+<span class="code-comment">// Explicit selection of bean method to be invoked.
+</span>from(<span class="code-quote">"direct:start"</span>).bean(<span
class="code-keyword">new</span> ExampleBean(), <span
class="code-quote">"methodName"</span>);
+
+<span class="code-comment">// Camel will create the instance of bean and cache
it <span class="code-keyword">for</span> you.
+</span>from(<span
class="code-quote">"direct:start"</span>).bean(ExampleBean.class);
+</pre>
+</div></div>
+
<h3><a shape="rect" name="Bean-BeanBinding"></a>Bean Binding</h3>
<p>How bean methods to be invoked are chosen (if they are not specified
explicitly through the <b>method</b> parameter) and how parameter values are
constructed from the <a shape="rect" href="message.html"
title="Message">Message</a> are all defined by the <a shape="rect"
href="bean-binding.html" title="Bean Binding">Bean Binding</a> mechanism which
is used throughout all of the various <a shape="rect"
href="bean-integration.html" title="Bean Integration">Bean Integration</a>
mechanisms in Camel.</p>
@@ -179,7 +210,6 @@ The source for the bean is just a plain
<ul><li><a shape="rect" href="configuring-camel.html" title="Configuring
Camel">Configuring Camel</a></li><li><a shape="rect" href="component.html"
title="Component">Component</a></li><li><a shape="rect" href="endpoint.html"
title="Endpoint">Endpoint</a></li><li><a shape="rect"
href="getting-started.html" title="Getting Started">Getting
Started</a></li></ul>
<ul><li><a shape="rect" href="class.html" title="Class">Class</a>
component</li><li><a shape="rect" href="bean-binding.html" title="Bean
Binding">Bean Binding</a></li><li><a shape="rect" href="bean-integration.html"
title="Bean Integration">Bean Integration</a></li></ul>
-
</div>
</td>
<td valign="top">
Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Thu Jul 5
13:29:32 2012
@@ -772,6 +772,37 @@ The source for the bean is just a plain
</div></div>
<p>Camel will use <a shape="rect" href="bean-binding.html" title="Bean
Binding">Bean Binding</a> to invoke the <tt>sayHello</tt> method, by converting
the Exchange's In body to the <tt>String</tt> type and storing the output of
the method on the Exchange Out body.</p>
+<h3><a shape="rect" name="BookComponentAppendix-JavaDSLbeansyntax"></a>Java
DSL bean syntax</h3>
+
+<p>Java DSL comes with syntactic sugar for the <a shape="rect"
href="bean.html" title="Bean">Bean</a> component. Instead of specifying the
bean explicitly as the endpoint (i.e. <tt>to("bean:beanName")</tt>) you can use
the following syntax:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+<span class="code-comment">// Send message to the bean endpoint
+</span><span class="code-comment">// and invoke method resolved using Bean
Binding.
+</span>from(<span class="code-quote">"direct:start"</span>).beanRef(<span
class="code-quote">"beanName"</span>);
+
+<span class="code-comment">// Send message to the bean endpoint
+</span><span class="code-comment">// and invoke given method.
+</span>from(<span class="code-quote">"direct:start"</span>).beanRef(<span
class="code-quote">"beanName"</span>, <span
class="code-quote">"methodName"</span>);
+</pre>
+</div></div>
+
+<p>Instead of passing name of the reference to the bean (so that Camel will
lookup for it in the registry), you can specify the bean itself:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+<span class="code-comment">// Send message to the given bean instance.
+</span>from(<span class="code-quote">"direct:start"</span>).bean(<span
class="code-keyword">new</span> ExampleBean());
+
+<span class="code-comment">// Explicit selection of bean method to be invoked.
+</span>from(<span class="code-quote">"direct:start"</span>).bean(<span
class="code-keyword">new</span> ExampleBean(), <span
class="code-quote">"methodName"</span>);
+
+<span class="code-comment">// Camel will create the instance of bean and cache
it <span class="code-keyword">for</span> you.
+</span>from(<span
class="code-quote">"direct:start"</span>).bean(ExampleBean.class);
+</pre>
+</div></div>
+
<h3><a shape="rect" name="BookComponentAppendix-BeanBinding"></a>Bean
Binding</h3>
<p>How bean methods to be invoked are chosen (if they are not specified
explicitly through the <b>method</b> parameter) and how parameter values are
constructed from the <a shape="rect" href="message.html"
title="Message">Message</a> are all defined by the <a shape="rect"
href="bean-binding.html" title="Bean Binding">Bean Binding</a> mechanism which
is used throughout all of the various <a shape="rect"
href="bean-integration.html" title="Bean Integration">Bean Integration</a>
mechanisms in Camel.</p>
@@ -781,7 +812,6 @@ The source for the bean is just a plain
<ul><li><a shape="rect" href="class.html" title="Class">Class</a>
component</li><li><a shape="rect" href="bean-binding.html" title="Bean
Binding">Bean Binding</a></li><li><a shape="rect" href="bean-integration.html"
title="Bean Integration">Bean Integration</a></li></ul>
-
<h2><a shape="rect"
name="BookComponentAppendix-BeanValidationComponent"></a>Bean Validation
Component</h2>
<p><b>Available as of Camel 2.3</b></p>
Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Thu Jul 5 13:29:32
2012
@@ -21259,6 +21259,37 @@ The source for the bean is just a plain
</div></div>
<p>Camel will use <a shape="rect" href="bean-binding.html" title="Bean
Binding">Bean Binding</a> to invoke the <tt>sayHello</tt> method, by converting
the Exchange's In body to the <tt>String</tt> type and storing the output of
the method on the Exchange Out body.</p>
+<h3><a shape="rect" name="BookInOnePage-JavaDSLbeansyntax"></a>Java DSL bean
syntax</h3>
+
+<p>Java DSL comes with syntactic sugar for the <a shape="rect"
href="bean.html" title="Bean">Bean</a> component. Instead of specifying the
bean explicitly as the endpoint (i.e. <tt>to("bean:beanName")</tt>) you can use
the following syntax:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+<span class="code-comment">// Send message to the bean endpoint
+</span><span class="code-comment">// and invoke method resolved using Bean
Binding.
+</span>from(<span class="code-quote">"direct:start"</span>).beanRef(<span
class="code-quote">"beanName"</span>);
+
+<span class="code-comment">// Send message to the bean endpoint
+</span><span class="code-comment">// and invoke given method.
+</span>from(<span class="code-quote">"direct:start"</span>).beanRef(<span
class="code-quote">"beanName"</span>, <span
class="code-quote">"methodName"</span>);
+</pre>
+</div></div>
+
+<p>Instead of passing name of the reference to the bean (so that Camel will
lookup for it in the registry), you can specify the bean itself:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+<span class="code-comment">// Send message to the given bean instance.
+</span>from(<span class="code-quote">"direct:start"</span>).bean(<span
class="code-keyword">new</span> ExampleBean());
+
+<span class="code-comment">// Explicit selection of bean method to be invoked.
+</span>from(<span class="code-quote">"direct:start"</span>).bean(<span
class="code-keyword">new</span> ExampleBean(), <span
class="code-quote">"methodName"</span>);
+
+<span class="code-comment">// Camel will create the instance of bean and cache
it <span class="code-keyword">for</span> you.
+</span>from(<span
class="code-quote">"direct:start"</span>).bean(ExampleBean.class);
+</pre>
+</div></div>
+
<h3><a shape="rect" name="BookInOnePage-BeanBinding"></a>Bean Binding</h3>
<p>How bean methods to be invoked are chosen (if they are not specified
explicitly through the <b>method</b> parameter) and how parameter values are
constructed from the <a shape="rect" href="message.html"
title="Message">Message</a> are all defined by the <a shape="rect"
href="bean-binding.html" title="Bean Binding">Bean Binding</a> mechanism which
is used throughout all of the various <a shape="rect"
href="bean-integration.html" title="Bean Integration">Bean Integration</a>
mechanisms in Camel.</p>
@@ -21268,7 +21299,6 @@ The source for the bean is just a plain
<ul><li><a shape="rect" href="class.html" title="Class">Class</a>
component</li><li><a shape="rect" href="bean-binding.html" title="Bean
Binding">Bean Binding</a></li><li><a shape="rect" href="bean-integration.html"
title="Bean Integration">Bean Integration</a></li></ul>
-
<h2><a shape="rect" name="BookInOnePage-BeanValidationComponent"></a>Bean
Validation Component</h2>
<p><b>Available as of Camel 2.3</b></p>
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.