felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1639520 - /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java
Date Thu, 13 Nov 2014 21:08:19 GMT
Author: cziegeler
Date: Thu Nov 13 21:08:18 2014
New Revision: 1639520

URL: http://svn.apache.org/r1639520
Log:
FELIX-4631 : [DS][R6/RFC212] Implement field injection.

Modified:
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java?rev=1639520&r1=1639519&r2=1639520&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/metadata/XmlHandler.java Thu Nov
13 21:08:18 2014
@@ -418,6 +418,12 @@ public class XmlHandler implements KXml2
                 {
                     ReferenceMetadata ref = new ReferenceMetadata(true);
 
+                    // name attribute is optional 
+                    if ( attributes.getAttribute( "name" ) != null )
+                    {
+                        ref.setName( attributes.getAttribute( "name" ) );
+                    }
+
                     ref.setInterface( attributes.getAttribute( "interface" ) );
 
                     // Cardinality



Mime
View raw message