diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-04 06:09:56 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-04 06:09:56 +0000 |
commit | 4e9809ebb27bc0846076822b0140bef424367b63 (patch) | |
tree | 45a093384f1eff457f817a98357d56b2fd45d437 /java/sca/modules/definitions-xml/src | |
parent | 9e714a9a25fb0797ebe6ae3d236f3b516b2ed925 (diff) |
A workaround for TUSCANY-2499 (set unresolved flag to false for intent definitions)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@682267 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/definitions-xml/src')
-rw-r--r-- | java/sca/modules/definitions-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/SCADefinitionsProcessor.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/java/sca/modules/definitions-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/SCADefinitionsProcessor.java b/java/sca/modules/definitions-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/SCADefinitionsProcessor.java index 7709a9577e..be5ddea3ac 100644 --- a/java/sca/modules/definitions-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/SCADefinitionsProcessor.java +++ b/java/sca/modules/definitions-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/SCADefinitionsProcessor.java @@ -22,8 +22,8 @@ package org.apache.tuscany.sca.definitions.xml; import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; -import java.util.List; import java.util.ArrayList; +import java.util.List; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamConstants; @@ -40,12 +40,12 @@ import org.apache.tuscany.sca.contribution.service.ContributionWriteException; import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.apache.tuscany.sca.definitions.SCADefinitions; import org.apache.tuscany.sca.definitions.impl.SCADefinitionsImpl; +import org.apache.tuscany.sca.monitor.Monitor; import org.apache.tuscany.sca.policy.Intent; import org.apache.tuscany.sca.policy.IntentAttachPointType; import org.apache.tuscany.sca.policy.PolicySet; import org.apache.tuscany.sca.policy.ProfileIntent; import org.apache.tuscany.sca.policy.QualifiedIntent; -import org.apache.tuscany.sca.monitor.Monitor; /** * Processor for SCA Definitions @@ -111,6 +111,9 @@ public class SCADefinitionsProcessor extends BaseStAXArtifactProcessor implement qualifiedIntent.getQualifiableIntent().getName().getLocalPart())); } + // FIXME: Workaround for TUSCANY-2499 + intent.setUnresolved(false); + definitions.getPolicyIntents().add(intent); } else if ( extension instanceof PolicySet ) { PolicySet policySet = (PolicySet)extension; |