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 2018/10/01 23:27:26 UTC

svn commit: r1036012 - in /websites/staging/felix/trunk/content: ./ documentation/subprojects/apache-felix-gogo/rfc-147-overview.html

Author: buildbot
Date: Mon Oct  1 23:27:26 2018
New Revision: 1036012

Log:
Staging update by buildbot for felix

Modified:
    websites/staging/felix/trunk/content/   (props changed)
    websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.html

Propchange: websites/staging/felix/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Oct  1 23:27:26 2018
@@ -1 +1 @@
-1842573
+1842574

Modified: websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.html
==============================================================================
--- websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.html (original)
+++ websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.html Mon Oct  1 23:27:26 2018
@@ -98,9 +98,9 @@ h2:hover > .headerlink, h3:hover > .head
 <li><a href="#lists-maps-pipes-and-closures">Lists, maps, pipes and closures.</a></li>
 <li><a href="#leverages-existing-java-capabilities-via-reflection">Leverages existing Java capabilities, via reflection.</a></li>
 <li><a href="#easy-to-implement-and-test-commands-without-needing-osgi">Easy to implement and test commands without needing OSGi.</a></li>
+<li><a href="#normal-commands-can-provide-control-primitives">Normal commands can provide control primitives.</a></li>
 </ul>
 </li>
-<li><a href="#normal-commands-can-provide-control-primitives">Normal commands can provide control primitives.</a></li>
 </ul>
 </div>
 <h2 id="standard-way-to-implement-and-run-commands-for-any-osgi-42-framework">Standard way to implement and run commands for any OSGi 4.2 framework<a class="headerlink" href="#standard-way-to-implement-and-run-commands-for-any-osgi-42-framework" title="Permanent link">&para;</a></h2>
@@ -251,13 +251,14 @@ h2:hover > .headerlink, h3:hover > .head
 </pre></div>
 
 
-<h2 id="normal-commands-can-provide-control-primitives">Normal commands can provide control primitives.<a class="headerlink" href="#normal-commands-can-provide-control-primitives" title="Permanent link">&para;</a></h2>
+<h3 id="normal-commands-can-provide-control-primitives">Normal commands can provide control primitives.<a class="headerlink" href="#normal-commands-can-provide-control-primitives" title="Permanent link">&para;</a></h3>
 <div class="codehilite"><pre><span class="kd">public</span> <span class="kt">void</span> <span class="nf">each</span><span class="o">(</span><span class="n">CommandSession</span> <span class="n">session</span><span class="o">,</span> <span class="n">Collection</span><span class="o">&lt;</span><span class="n">Object</span><span class="o">&gt;</span> <span class="n">list</span><span class="o">,</span> <span class="n">Function</span> <span class="n">closure</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
     <span class="k">for</span> <span class="o">(</span><span class="n">Object</span> <span class="n">x</span> <span class="o">:</span> <span class="n">list</span><span class="o">)</span> <span class="o">{</span>
         <span class="n">closure</span><span class="o">.</span><span class="na">execute</span><span class="o">(</span><span class="n">session</span><span class="o">,</span> <span class="kc">null</span><span class="o">);</span>
     <span class="o">}</span>
 <span class="o">}</span>
 
+
 <span class="o">:::</span><span class="n">shell</span>
 <span class="n">g</span><span class="o">!</span> <span class="n">each</span> <span class="o">[</span><span class="n">Jan</span> <span class="n">Feb</span> <span class="n">Mar</span><span class="o">]</span> <span class="o">{</span> <span class="n">echo</span> <span class="n">$it</span> <span class="o">|</span> <span class="n">grep</span> <span class="o">.</span> <span class="o">}</span>
 <span class="n">Jan</span>
@@ -269,7 +270,7 @@ h2:hover > .headerlink, h3:hover > .head
 <p><strong>Note:</strong> The default <em>echo</em> command <em>returns</em> a String and does not write to System.out. Also, by default, the console prints the results of each command, so <em>echo</em> appears to behave as you would expect.
 However, the console does not see the <em>each</em> closure above, so the result of echo would not be seen. This is why it is piped into <em>grep</em>, as the <em>result</em> of the command as well as its output is written to a pipeline.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1842573 by rotty3000 on Mon, 1 Oct 2018 23:24:17 +0000
+        Rev. 1842574 by rotty3000 on Mon, 1 Oct 2018 23:27:07 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project