FELIX-4149 only allow configurable service properties for singleton components

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1616084 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/metadata/ComponentMetadata.java b/scr/src/main/java/org/apache/felix/scr/impl/metadata/ComponentMetadata.java
index c19f54b..e482025 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/metadata/ComponentMetadata.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/metadata/ComponentMetadata.java
@@ -920,6 +920,10 @@
         {
         	m_configurableServiceProperties = true;
         }
+        if ( m_configurableServiceProperties && getServiceScope() != Scope.singleton )
+        {
+            throw validationFailure( "configurable service properties only allowed with singleton scope" );
+        }
         if (m_dsVersion.isDS13())
         {
         	m_deleteCallsModify = true; //spec behavior as of 1.3