FELIX-3810 :  @org.osgi.service.component.annotations.Component configurationPolicy attribute not processed correctly by DSAnnotationProcessor . Apply patch from Stephen Flynn

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1424430 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/ds-annotations/src/main/java/org/apache/felix/scrplugin/ds/DSAnnotationProcessor.java b/scrplugin/ds-annotations/src/main/java/org/apache/felix/scrplugin/ds/DSAnnotationProcessor.java
index fedcef0..b8778ba 100644
--- a/scrplugin/ds-annotations/src/main/java/org/apache/felix/scrplugin/ds/DSAnnotationProcessor.java
+++ b/scrplugin/ds-annotations/src/main/java/org/apache/felix/scrplugin/ds/DSAnnotationProcessor.java
@@ -201,7 +201,7 @@
         }
 
         // configuration policy
-        component.setConfigurationPolicy(ComponentConfigurationPolicy.valueOf(cad.getEnumValue("policy",
+        component.setConfigurationPolicy(ComponentConfigurationPolicy.valueOf(cad.getEnumValue("configurationPolicy",
                         ComponentConfigurationPolicy.OPTIONAL.name())));
 
         // configuration pid