From 2f3b1e85e47d0f5a7a7005b408e731aa42023b90 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 29 Sep 2010 15:48:28 +0000 Subject: Update the node xml processor to support reading the extra attributes git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1002697 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/node/configuration/xml/NodeConfigurationProcessor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sca-java-2.x/trunk/modules/node-impl/src') diff --git a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessor.java b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessor.java index 46f46a3757..663129bc0f 100644 --- a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessor.java +++ b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessor.java @@ -22,6 +22,7 @@ import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; import java.io.StringReader; import java.io.StringWriter; +import java.util.Arrays; import java.util.StringTokenizer; import javax.xml.namespace.QName; @@ -107,6 +108,15 @@ public class NodeConfigurationProcessor extends BaseStAXArtifactProcessor implem contribution = nodeConfigurationFactory.createContributionConfiguration(); contribution.setURI(reader.getAttributeValue(null, "uri")); contribution.setLocation(reader.getAttributeValue(null, "location")); + contribution.setMetaDataURL(reader.getAttributeValue(null, "metaDataURL")); + String startDeployables = reader.getAttributeValue(null, "startDeployables"); + if (startDeployables != null) { + contribution.setStartDeployables(Boolean.parseBoolean(startDeployables)); + } + String dependentURIs = reader.getAttributeValue(null, "dependentURIs"); + if (dependentURIs != null) { + contribution.setDependentContributionURIs(Arrays.asList(dependentURIs.split(","))); + } node.getContributions().add(contribution); } else if (BINDING.equals(name)) { binding = nodeConfigurationFactory.createBindingConfiguration(); -- cgit v1.2.3