camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r950833 - in /websites/production/camel/content: blueprint-testing.html cache/main.pageCache
Date Sun, 10 May 2015 17:18:37 GMT
Author: buildbot
Date: Sun May 10 17:18:37 2015
New Revision: 950833

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/blueprint-testing.html
    websites/production/camel/content/cache/main.pageCache

Modified: websites/production/camel/content/blueprint-testing.html
==============================================================================
--- websites/production/camel/content/blueprint-testing.html (original)
+++ websites/production/camel/content/blueprint-testing.html Sun May 10 17:18:37 2015
@@ -209,7 +209,20 @@ protected String getBundleFilter() {
       <to uri="mock:result"/>
     </route>
 ]]></script>
-</div></div></div>
+</div></div><p>&#160;</p><p><span>From&#160;</span><strong>Camel
2.16.0</strong><span>, an additional&#160;</span><span><code>addServicesOnStartup</code>
method is available to be overridden making it ideal for when needing to specify multiple
services with the same interface.</span><span>&#160;</span></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[
 @Override
+  protected void addServicesOnStartup(List&lt;KeyValueHolder&lt;String, KeyValueHolder&lt;Object,
Dictionary&gt;&gt;&gt; services) {
+      Dictionary&lt;String, String&gt; dict1 = new Hashtable&lt;String, String&gt;();
+      dict1.put(&quot;osgi.jndi.service.name&quot;, &quot;jdbc/db1&quot;);
+        
+      Dictionary&lt;String, String&gt; dict2 = new Hashtable&lt;String, String&gt;();
+      dict2.put(&quot;osgi.jndi.service.name&quot;, &quot;jdbc/db2&quot;);
+        
+      services.add(asKeyValueService(javax.sql.DataSource.class.getName(), mockService1,
dict1));
+      services.add(asKeyValueService(javax.sql.DataSource.class.getName(), mockService2,
dict2));
+    }
+]]></script>
+</div></div><p><span>The <code>asKeyValueService</code>
builder method can be used to construct the necessary parameters to create the service. The
method takes in the name of the registered service, the object, and and a <code><span>Dictionary</span></code>&#160;as
arguments.</span></p></div>
         </td>
         <td valign="top">
           <div class="navigation">

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



Mime
View raw message