Author: fmeschbe
Date: Tue Oct 6 07:43:57 2009
New Revision: 822155
URL: http://svn.apache.org/viewvc?rev=822155&view=rev
Log:
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
Modified:
felix/trunk/scr-annotations/src/main/java/org/apache/felix/scr/annotations/Component.java
Modified:
felix/trunk/scr-annotations/src/main/java/org/apache/felix/scr/annotations/Component.java
URL:
http://svn.apache.org/viewvc/felix/trunk/scr-annotations/src/main/java/org/apache/felix/scr/annotations/Component.java?rev=822155&r1=822154&r2=822155&view=diff
==============================================================================
---
felix/trunk/scr-annotations/src/main/java/org/apache/felix/scr/annotations/Component.java
(original)
+++
felix/trunk/scr-annotations/src/main/java/org/apache/felix/scr/annotations/Component.java
Tue Oct 6 07:43:57 2009
@@ -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.
*/