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/02/19 17:18:11 UTC
svn commit: r940764 - in /websites/production/camel/content:
cache/main.pageCache kura.html
Author: buildbot
Date: Thu Feb 19 16:18:11 2015
New Revision: 940764
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/kura.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/kura.html
==============================================================================
--- websites/production/camel/content/kura.html (original)
+++ websites/production/camel/content/kura.html Thu Feb 19 16:18:11 2015
@@ -160,6 +160,17 @@ start <your-bundle-id>]]></script>
}
}]]></script>
+</div></div><h3 id="Kura-KuraRouteractivatorcallbacks">KuraRouter activator callbacks</h3><p>Kura router comes with the lifecycle callbacks that can be used to customize the way the Camel router works. For example to configure the <code>CamelContext</code> instance associated with the router just before the former is started, override <code>beforeStart</code> method of the <code>KuraRouter</code> class:</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[public class MyKuraRouter extends KuraRouter {
+Â
+ ...
+
+ protected void beforeStart(CamelContext camelContext) {
+ OsgiDefaultCamelContext osgiContext = (OsgiCamelContext) camelContext;
+ osgiContext.setName("NameOfTheRouter");
+ }
+
+}]]></script>
</div></div><p></p><h3 id="Kura-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>