commit | b23eef387492d3d0aaa6360fb3ea42c2eb676814 | [log] [tgz] |
---|---|---|
author | Pierre De Rop <pderop@apache.org> | Fri Jun 01 14:08:55 2012 +0000 |
committer | Pierre De Rop <pderop@apache.org> | Fri Jun 01 14:08:55 2012 +0000 |
tree | 9f71d267598eaa716b2424f5d97b4db12e439de1 | |
parent | 7d403d5399582a85276a8baf2c8dd21f7f1f71ba [diff] |
FELIX-3524: allow to parse 4.3 configuration-pid attribute from component element. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1345183 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java b/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java index f743610..de86e25 100644 --- a/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java +++ b/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java
@@ -239,6 +239,12 @@ m_currentComponent.setModified( attrib.getProperty( "modified" ) ); } + // configuration-pid attribute is optional (since DS 1.2) + if (attrib.getProperty("configuration-pid") != null) + { + m_currentComponent.setConfigirationPid( attrib.getProperty( "configuration-pid" ) ); + } + // Add this component to the list m_components.add( m_currentComponent ); }