commit | 21fad7a7a043d85cf07185a2b08ecee6890add63 | [log] [tgz] |
---|---|---|
author | Guillaume Sauthier <guillaume@apache.org> | Fri Jun 07 11:50:32 2013 +0000 |
committer | Guillaume Sauthier <guillaume@apache.org> | Fri Jun 07 11:50:32 2013 +0000 |
tree | 066b682981a5ed5c04717ee6f4c0b7bf82d52713 | |
parent | e369c2ddd88e855e97d822876d3285b33cf40a9d [diff] |
FELIX-4110 @ServiceProperty and @StaticServiceProperty are missing the immutable attribute git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1490598 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java b/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java index 5eed009..5ce5f39 100644 --- a/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java +++ b/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/ServiceProperty.java
@@ -40,11 +40,18 @@ * 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; + }
diff --git a/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java b/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java index c3adae1..969725d 100644 --- a/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java +++ b/ipojo/manipulator/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java
@@ -51,4 +51,11 @@ * 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; }