You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2013/12/10 08:40:55 UTC

svn commit: r1549774 - /felix/site/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.mdtext

Author: cziegeler
Date: Tue Dec 10 07:40:55 2013
New Revision: 1549774

URL: http://svn.apache.org/r1549774
Log:
FELIX-4277 : The maven-scr-plugin generates false warnings when using @SlingServlet

Modified:
    felix/site/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.mdtext

Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.mdtext?rev=1549774&r1=1549773&r2=1549774&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.mdtext (original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.mdtext Tue Dec 10 07:40:55 2013
@@ -1,7 +1,6 @@
 Title: SCR Annotations
 Excerpt: Using Java 5 Annotations to describe the component or service.
 
-
 The `maven-scr-plugin` uses the `SCR` annotations from the corresponding subproject at Apache Felix. All annotations are in the `org.apache.felix.scr.annotations` package. If you want to use the annotations in your project, you have to use a `maven-scr-plugin` version >= 1.2.0 and make sure that you add a dependency to the annotations to your `POM`:
 
     :::xml
@@ -285,17 +284,17 @@ and defining the `@Property` annotation 
 
 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 `@Property` annotation.
 
-The value of the `options` attribute is a list of `@Options` annotations:
+The value of the `options` attribute is a list of `@PropertyOption`s annotations:
 
     :::java
     @Property(name = "sample",
         options = {
-            @Option(name = "option1", value = "&option.label.1"),
-            @Option(name = "option2", value = "&option.label.2")
+            @PropertyOption(name = "option1", value = "&option.label.1"),
+            @PropertyOption(name = "option2", value = "&option.label.2")
         }
     )
 
-The `@Option`'s name is used as the value while the parameter value is
+The `@PropertyOption`'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 `%` sign to localize the string.