incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From timothyjw...@apache.org
Subject svn commit: r921632 - /incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/Parser.java
Date Wed, 10 Mar 2010 23:41:42 GMT
Author: timothyjward
Date: Wed Mar 10 23:41:41 2010
New Revision: 921632

URL: http://svn.apache.org/viewvc?rev=921632&view=rev
Log:
ARIES-242 : Handle custom attributes on the blueprint element

Modified:
    incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/Parser.java

Modified: incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/Parser.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/Parser.java?rev=921632&r1=921631&r2=921632&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/Parser.java
(original)
+++ incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/Parser.java
Wed Mar 10 23:41:41 2010
@@ -310,19 +310,7 @@ public class Parser {
         }
         
         // Parse custom attributes
-        NamedNodeMap attributes = root.getAttributes();
-        if (attributes != null) {
-            for (int i = 0; i < attributes.getLength(); i++) {
-                Node node = attributes.item(i);
-                if (node instanceof Attr
-                        && node.getNamespaceURI() != null
-                        && !isBlueprintNamespace(node.getNamespaceURI())
-                        && !XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(node.getNamespaceURI())
-                        && XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName()))
{
-                    decorateCustomNode(node, null);
-                }
-            }
-        }
+        handleCustomAttributes(root.getAttributes(), null);
 
         // Parse elements
         NodeList nl = root.getChildNodes();



Mime
View raw message