You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pd...@apache.org on 2016/03/02 01:07:28 UTC
svn commit: r1733198 -
/felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.mdtext
Author: pderop
Date: Wed Mar 2 00:07:27 2016
New Revision: 1733198
URL: http://svn.apache.org/viewvc?rev=1733198&view=rev
Log:
update CF dependency.
Modified:
felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.mdtext
Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.mdtext?rev=1733198&r1=1733197&r2=1733198&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.mdtext (original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/guides/dm-lambda.mdtext Wed Mar 2 00:07:27 2016
@@ -781,7 +781,7 @@ So, you use an `HttpClient` which allows
which does not block the current thread, but instead returns `CompletableFuture<String>`
which represents the future result of the asynchronously downloaded page.
-So, from your component init() method, you can just declare a FutureDependency on the result of the `CompletableFuture<String>`.
+From your component init() method, you can then declare a FutureDependency on the result of the `CompletableFuture<String>`.
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
`consumer<FutureDependencyBuilder>`. The second arg is a lambda that can be used to configure the callback to invoke when the CF has completed.