felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r979329 - in /websites/staging/felix/trunk/content: ./ documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.html
Date Tue, 02 Feb 2016 23:41:27 GMT
Author: buildbot
Date: Tue Feb  2 23:41:27 2016
New Revision: 979329

Log:
Staging update by buildbot for felix

Modified:
    websites/staging/felix/trunk/content/   (props changed)
    websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.html

Propchange: websites/staging/felix/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Feb  2 23:41:27 2016
@@ -1 +1 @@
-1728237
+1728239

Modified: websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.html
==============================================================================
--- websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.html
(original)
+++ websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.html
Tue Feb  2 23:41:27 2016
@@ -374,7 +374,7 @@ be injected (using DM, optional service
 
 <p>Now, here is the implementation for our component which downloads the URL from its
init method. The init method will declare a "FutureDependency"
 for the result of the <code>CompletableFuture&lt;String&gt;</code> returned
by the HttpClient. And once the result is injected
-in the setPage callback, then the start() callback will be called, and finally, any registered
Tracked service will be
+in the setPage callback, then the start() callback will be called, and finally, any registered
Tracked services will be
 injected in the "bindTracked" method:</p>
 <div class="codehilite"><pre><span class="kn">import</span> <span
class="nn">static</span> <span class="n">org</span><span class="o">.</span><span
class="na">apache</span><span class="o">.</span><span class="na">felix</span><span
class="o">.</span><span class="na">dm</span><span class="o">.</span><span
class="na">lambda</span><span class="o">.</span><span class="na">DependencyManagerActivator</span><span
class="o">.*;</span>
 
@@ -403,7 +403,7 @@ injected in the "bindTracked" method:</p
         <span class="c1">// We have downloaded the page, our component is starting
and is about to be registered</span>
     <span class="o">}</span>
 
-    <span class="kt">void</span> <span class="nf">bind</span><span
class="o">(</span><span class="n">Tracked</span> <span class="n">service</span><span
class="o">)</span> <span class="o">{</span>
+    <span class="kt">void</span> <span class="nf">bindTracked</span><span
class="o">(</span><span class="n">Tracked</span> <span class="n">service</span><span
class="o">)</span> <span class="o">{</span>
         <span class="c1">// a Tracked service is injected, we can handle it because
we are fully initialized.</span>
         <span class="c1">// (optional service callbacks are always invoked after the
start callback).</span>
     <span class="o">}</span>
@@ -414,7 +414,7 @@ injected in the "bindTracked" method:</p
 <p>So, using the Future Dependency we can nicely reuse the jdk CompletableFuture as
a required dependency. Without using the FutureDependency
 on the CompletableFuture returned by the HttpClient, we would then have to manually register
our service using bundleContext.registerService(), and we 
 would then have to check if the webpage has been downloaded each time a Tracked service is
injected. And in case the page is not available, we would 
-then have to cache the injected Tracked service and process it later, once the page have
been downloaded.</p>
+then have to cache the injected Tracked service and process it later, once the page has been
downloaded.</p>
 <p>Also, notice that when the page is injected in the setPage() method, you absolutely
don't need to deal with
 synchronization at all because in DM, all lifecycle and dependency callbacks are safely scheduled
in a "serial queue" associated to the
 component.</p>
@@ -540,7 +540,7 @@ and the service is registered.</p>
 <p>Caution: if you are using a corporate http proxy, you have to fix the Activator
in order to configure the ip addr and port number of your
 http proxy.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1728237 by pderop on Tue, 2 Feb 2016 23:35:22 +0000
+        Rev. 1728239 by pderop on Tue, 2 Feb 2016 23:41:12 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project



Mime
View raw message