Author: buildbot
Date: Tue Mar  1 23:40:29 2016
New Revision: 981590

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 Mar  1 23:40:29 2016
@@ -1 +1 @@
-1733188
+1733191

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 Mar  1 23:40:29 2016
@@ -815,8 +815,10 @@ it is forbidden to block on the current
 <p>So, you use an <code>HttpClient</code> which allows to asynchronously 
download a web page: this service is assumed to provide a doGET() method
 which does not block the current thread, but instead returns 
<code>CompletableFuture&lt;String&gt;</code>
 which represents the future result of the asynchronously downloaded page.</p>
-<p>So, from your component init() method, you can just declare a 
FutureDependency on the result of the 
<code>CompletableFuture&lt;String&gt;</code></p>
-<p>And once the result will be completed, you will then be called in your 
start() callback, and at this point, the Tracked services will then
+<p>So, from your component init() method, you can just declare a 
FutureDependency on the result of the 
<code>CompletableFuture&lt;String&gt;</code>.
+A Future Dependency can be defined using the "withFuture" method available 
from the ComponentBuilder interface,  and this method takes as argument two 
args: a CompletableFuture, and a 
+<code>consumer&lt;FutureDependencyBuilder&gt;</code>. The second arg is a 
lambda that can be used to configure the callback to invoke when the CF has 
completed.</p>
+<p>And once the result completes, start() will be called, and at this point, 
the Tracked services will then
 be injected (using DM, optional service callbacks are always invoked after the 
start() callback, never before).</p>
 <p>So, the Activator looks like this:</p>
 <div class="codehilite"><pre><span class="kn">import</span> <span 
class="nn">org.apache.felix.dm.lambda.DependencyManagerActivator</span><span 
class="o">;</span>
@@ -939,7 +941,7 @@ http proxy.</p>
 <h2 id="javadoc">Javadoc<a class="headerlink" href="#javadoc" title="Permanent 
link">&para;</a></h2>
 <p>You can find the javadoc for the new Dependency Manager Lambda library <a 
href="../../../../apidocs/">here</a>.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; 
text-align: right;">
-        Rev. 1733126 by pderop on Tue, 1 Mar 2016 19:53:02 +0000
+        Rev. 1733191 by pderop on Tue, 1 Mar 2016 23:40:15 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Felix, Felix, Apache, the Apache feather logo, and the Apache 
Felix project


Reply via email to