You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by bu...@apache.org on 2016/02/03 21:19:58 UTC

svn commit: r979416 [19/19] - in /websites/staging/felix/trunk/content: ./ apidocs/ apidocs/dependencymanager.lambda/ apidocs/dependencymanager.lambda/r7/ apidocs/dependencymanager.lambda/r7/org/ apidocs/dependencymanager.lambda/r7/org/apache/ apidocs/...

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 Wed Feb  3 20:19:56 2016
@@ -88,6 +88,7 @@ h2:hover > .headerlink, h3:hover > .head
   visibility: hidden;
 }
 h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
+<hr />
 <p>Since the R7 version, a new dm-lambda library has been introduced in the DM distribution. This new library allows to programmatically declare OSGi components
 using a bit more fluent, concise and type-safe API that is based on Java8 Lambda expressions and other goodies like method references.</p>
 <h2 id="principle">Principle<a class="headerlink" href="#principle" title="Permanent link">&para;</a></h2>
@@ -392,7 +393,7 @@ what it has parsed, it will possibly add
         <span class="n">parseXml</span><span class="o">(</span><span class="n">conf</span><span class="o">.</span><span class="na">get</span><span class="o">(</span><span class="s">&quot;some.xml.configuration&quot;</span><span class="o">));</span>
     <span class="o">}</span>
 
-    <span class="kt">void</span> <span class="nf">init</span><span class="o">(</span><span class="n">Component</span> <span class="n">c</span><span class="o">)</span> <span class="o">{</span> <span class="c1">// lifecycle dm callback that allow you to add more dependencies</span>
+    <span class="kt">void</span> <span class="nf">init</span><span class="o">(</span><span class="n">Component</span> <span class="n">c</span><span class="o">)</span> <span class="o">{</span> <span class="c1">// lifecycle dm callback that allows you to add more dependencies</span>
         <span class="k">if</span> <span class="o">(</span><span class="n">xmlConfigurationRequiresEventAdmin</span><span class="o">)</span> <span class="o">{</span>
             <span class="n">DependencyManager</span> <span class="n">dm</span> <span class="o">=</span> <span class="n">c</span><span class="o">.</span><span class="na">getDependencyManager</span><span class="o">();</span>
             <span class="n">ServiceDependency</span> <span class="n">dep</span> <span class="o">=</span> <span class="n">serviceDependency</span><span class="o">(</span><span class="n">c</span><span class="o">,</span> <span class="n">EventAdmin</span><span class="o">.</span><span class="na">class</span><span class="o">).</span><span class="na">filter</span><span class="o">(</span><span class="s">&quot;(vendor=felix)&quot;</span><span class="o">).</span><span class="na">build</span><span class="o">();</span>
@@ -614,7 +615,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. 1728346 by pderop on Wed, 3 Feb 2016 17:29:51 +0000
+        Rev. 1728366 by pderop on Wed, 3 Feb 2016 20:19:27 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project