FELIX-1703 Add support do declare the DS specification version
explicitly on a per-component basis using the same attribute
name (specVersion) as is used to set the global spec version
per plugin configuration

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk/scr-annotations@822155 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/felix/scr/annotations/Component.java b/src/main/java/org/apache/felix/scr/annotations/Component.java
index 5a1bf9d..76db817 100644
--- a/src/main/java/org/apache/felix/scr/annotations/Component.java
+++ b/src/main/java/org/apache/felix/scr/annotations/Component.java
@@ -102,6 +102,21 @@
     boolean ds() default true;
 
     /**
+     * The version of the Declarative Services specification against which the
+     * component is written. Generally, the Maven SCR Plugin is able to
+     * automatically detect which specification version a Component is written
+     * against. There are some cases, though, where this is not easily or
+     * reliably possible. In these cases use this attribute to force the
+     * specification version.
+     * <p>
+     * Valid values currently are <code>1.0</code> and <code>1.1</code>. If
+     * an unsupported value is declared, a descriptor failure results.
+     *
+     * @since 1.0.1
+     */
+    String specVersion() default "1.0";
+
+    /**
      * Generated <code>service.pid</code> property by default, if none declared
      * explicitly.
      */