commit | 098eb32c7621a846c2a1468947d5e7c60305960f | [log] [tgz] |
---|---|---|
author | David Jencks <djencks@apache.org> | Wed Aug 06 02:59:17 2014 +0000 |
committer | David Jencks <djencks@apache.org> | Wed Aug 06 02:59:17 2014 +0000 |
tree | 75d2dcc02b0a11affad32172e22621d65d6d8aad | |
parent | dcf33e72825a3dd8af85cea555d2f8bf65751509 [diff] |
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