diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-29 15:48:28 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-29 15:48:28 +0000 |
commit | 2f3b1e85e47d0f5a7a7005b408e731aa42023b90 (patch) | |
tree | 448dad4e0574d05f4071c82f2e7bfc6302a13538 /sca-java-2.x/trunk/modules | |
parent | babf43fa7ca41e025adc99346f91a7c728067bc8 (diff) |
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
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessor.java | 10 |
1 files changed, 10 insertions, 0 deletions
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(); |