camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r927184 - in /websites/production/camel/content: cache/main.pageCache spring-boot.html
Date Tue, 28 Oct 2014 16:18:59 GMT
Author: buildbot
Date: Tue Oct 28 16:18:59 2014
New Revision: 927184

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/spring-boot.html

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

Modified: websites/production/camel/content/spring-boot.html
==============================================================================
--- websites/production/camel/content/spring-boot.html (original)
+++ websites/production/camel/content/spring-boot.html Tue Oct 28 16:18:59 2014
@@ -184,7 +184,20 @@ public class InvoiceProcessor {
 </div></div><p>By default consumer and producer templates comes with the
endpoint cache sizes equal to 1000. You can change that values via the following Spring properties:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[camel.springboot.consumerTemplateCacheSize
= 100
 camel.springboot.producerTemplateCacheSize = 200]]></script>
-</div></div><p>&#160;</p><p><br clear="none"></p><h3
id="SpringBoot-SeeAlso">See Also</h3>
+</div></div><h3 id="SpringBoot-Auto-configuredTypeConverter">Auto-configured&#160;TypeConverter</h3><p>Camel
auto-configuration registers&#160;<code>TypeConverter</code> instance named
<code>typeConverter</code>&#160;in the Spring context.</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[@Component
+public class InvoiceProcessor {
+
+  @Autowired
+  private TypeConverter typeConverter;
+
+  public long parseInvoiceValue(Invoice invoice) {
+    String invoiceValue = invoice.grossValue();
+    return typeConverter.convertTo(Long.class, invoiceValue);
+  }
+
+}]]></script>
+</div></div><p><br clear="none"></p><h3 id="SpringBoot-SeeAlso">See
Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring Camel</a></li><li><a
shape="rect" href="component.html">Component</a></li><li><a shape="rect"
href="endpoint.html">Endpoint</a></li><li><a shape="rect" href="getting-started.html">Getting
Started</a></li></ul></div>
         </td>
         <td valign="top">



Mime
View raw message