felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guilla...@apache.org
Subject svn commit: r1490598 - in /felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations: ServiceProperty.java StaticServiceProperty.java
Date Fri, 07 Jun 2013 11:50:32 GMT
Author: guillaume
Date: Fri Jun  7 11:50:32 2013
New Revision: 1490598

URL: http://svn.apache.org/r1490598
Log:
FELIX-4110 @ServiceProperty and @StaticServiceProperty are missing the immutable attribute

Modified:
    felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java
    felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java

Modified: felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java?rev=1490598&r1=1490597&r2=1490598&view=diff
==============================================================================
--- felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java
(original)
+++ felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java
Fri Jun  7 11:50:32 2013
@@ -40,11 +40,18 @@ public @interface ServiceProperty {
      * Default : empty
      */
     String value() default "";
-    
+
     /**
      * Is the property mandatory?
      * Default: false
      */
     boolean mandatory() default false;
 
+    /**
+     * Is the service property immutable ?
+     * An immutable property <b>MUST</b> have a value
+     * Default {@literal false}
+     */
+    boolean immutable() default false;
+
 }

Modified: felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java?rev=1490598&r1=1490597&r2=1490598&view=diff
==============================================================================
--- felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java
(original)
+++ felix/trunk/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java
Fri Jun  7 11:50:32 2013
@@ -51,4 +51,11 @@ public @interface StaticServiceProperty 
      * This value is required only for static properties.
      */
     String type();
+
+    /**
+     * Is the property immutable ?
+     * An immutable property <b>MUST</b> have a value
+     * Default: {@literal false}
+     */
+    boolean immutable() default false;
 }



Mime
View raw message