felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r889812 - in /websites/staging/felix/trunk/content: ./ documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html
Date Tue, 10 Dec 2013 07:42:14 GMT
Author: buildbot
Date: Tue Dec 10 07:42:14 2013
New Revision: 889812

Log:
Staging update by buildbot for felix

Modified:
    websites/staging/felix/trunk/content/   (props changed)
    websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html

Propchange: websites/staging/felix/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Dec 10 07:42:14 2013
@@ -1 +1 @@
-1543044
+1549774

Modified: websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html
==============================================================================
--- websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html
(original)
+++ websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html
Tue Dec 10 07:42:14 2013
@@ -308,17 +308,17 @@ See below for a description of the <code
 <p>and defining the <code>@Property</code> annotation on this constant,
the name of the property is taken from the constant value. Thus it may easily be ensured,
that both the property in the descriptor files and the property used by the implementation
are actually the same. In addition the value attribute can refer to another constant.</p>
 <h3 id="the-options-attribute">The <code>options</code> Attribute</h3>
 <p>Some properties may only be set to a set of possible values. To support user interfaces
which provide a selection list of values or a list of checkboxes the option values and labels
may be defined as parameters to the <code>@Property</code> annotation.</p>
-<p>The value of the <code>options</code> attribute is a list of <code>@Options</code>
annotations:</p>
+<p>The value of the <code>options</code> attribute is a list of <code>@PropertyOption</code>s
annotations:</p>
 <div class="codehilite"><pre><span class="nd">@Property</span><span
class="o">(</span><span class="n">name</span> <span class="o">=</span>
<span class="s">&quot;sample&quot;</span><span class="o">,</span>
     <span class="n">options</span> <span class="o">=</span> <span
class="o">{</span>
-        <span class="nd">@Option</span><span class="o">(</span><span
class="n">name</span> <span class="o">=</span> <span class="s">&quot;option1&quot;</span><span
class="o">,</span> <span class="n">value</span> <span class="o">=</span>
<span class="s">&quot;&amp;option.label.1&quot;</span><span class="o">),</span>
-        <span class="nd">@Option</span><span class="o">(</span><span
class="n">name</span> <span class="o">=</span> <span class="s">&quot;option2&quot;</span><span
class="o">,</span> <span class="n">value</span> <span class="o">=</span>
<span class="s">&quot;&amp;option.label.2&quot;</span><span class="o">)</span>
+        <span class="nd">@PropertyOption</span><span class="o">(</span><span
class="n">name</span> <span class="o">=</span> <span class="s">&quot;option1&quot;</span><span
class="o">,</span> <span class="n">value</span> <span class="o">=</span>
<span class="s">&quot;&amp;option.label.1&quot;</span><span class="o">),</span>
+        <span class="nd">@PropertyOption</span><span class="o">(</span><span
class="n">name</span> <span class="o">=</span> <span class="s">&quot;option2&quot;</span><span
class="o">,</span> <span class="n">value</span> <span class="o">=</span>
<span class="s">&quot;&amp;option.label.2&quot;</span><span class="o">)</span>
     <span class="o">}</span>
 <span class="o">)</span>
 </pre></div>
 
 
-<p>The <code>@Option</code>'s name is used as the value while the parameter
value is
+<p>The <code>@PropertyOption</code>'s name is used as the value while the
parameter value is
 used as the label in the user interface. This label may be prepended with
 a <code>%</code> sign to localize the string.</p>
 <p>The options are written to the <code>metatype.xml</code> file as <code>Option</code>
elements
@@ -375,7 +375,7 @@ The name of the method to be called when
 <em>SCR Descriptor</em>: <code>reference.strategy</code>  <br
/>
 The strategy used for this reference, one of <code>event</code> or <code>lookup</code>.
If the reference is defined on a field with a strategy of <code>event</code> and
there is no bind or unbind method, the plugin will create the necessary methods.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1524011 by cziegeler on Tue, 17 Sep 2013 12:41:10 +0000
+        Rev. 1549774 by cziegeler on Tue, 10 Dec 2013 07:40:55 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project



Mime
View raw message