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> </p><p><br clear="none"></p><h3 id="SpringBoot-SeeAlso">See Also</h3> +</div></div><h3 id="SpringBoot-Auto-configuredTypeConverter">Auto-configured TypeConverter</h3><p>Camel auto-configuration registers <code>TypeConverter</code> instance named <code>typeConverter</code> 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">