You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by bu...@apache.org on 2012/01/13 11:23:06 UTC

svn commit: r802522 - /websites/staging/river/trunk/content/user-guide-basic-river-services.html

Author: buildbot
Date: Fri Jan 13 10:23:05 2012
New Revision: 802522

Log:
Staging update by buildbot for river

Modified:
    websites/staging/river/trunk/content/user-guide-basic-river-services.html

Modified: websites/staging/river/trunk/content/user-guide-basic-river-services.html
==============================================================================
--- websites/staging/river/trunk/content/user-guide-basic-river-services.html (original)
+++ websites/staging/river/trunk/content/user-guide-basic-river-services.html Fri Jan 13 10:23:05 2012
@@ -171,7 +171,12 @@
 <li>Execute the script <code>scripts/jrmp-outrigger-group.bat</code></li>
 </ul>
 <h3 id="testing_it_2">Testing it</h3>
-<p>To find any kind of service we must first create a template.  This is an instance of <code>ServiceTemplate</code> which describes the kind of thing we're looking for.  As the Jini specification says, nulls and empty arrays as wildcard characters for "any value".  So the following code is a template which will match any service which implements the <code>JavaSapce</code> interface regardless of the rest of it's characteristics.</p>
+<p>To find any kind of service we must first create a template. 
+This is an instance of <code>ServiceTemplate</code> which describes the kind of thing we're 
+looking for. 
+As the Jini specification says, nulls and empty arrays as wildcard characters for
+"any value". 
+So the following code is a template which will match any service which implements the <code>JavaSpace</code> interface regardless of the rest of it's characteristics.</p>
 <div class="codehilite"><pre><span class="n">ServiceTemplate</span> <span class="n">template</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ServiceTemplate</span><span class="p">(</span><span class="n">null</span><span class="p">,</span> <span class="k">new</span> <span class="n">Class</span><span class="p">[)</span> <span class="p">{</span> <span class="n">JavaSpace</span><span class="o">.</span><span class="n">class</span> <span class="p">},</span> <span class="k">new</span> <span class="n">Entry</span><span class="p">[</span><span class="mi">0</span><span class="p">]());</span>
 </pre></div>