From 4e9809ebb27bc0846076822b0140bef424367b63 Mon Sep 17 00:00:00 2001 From: rfeng Date: Mon, 4 Aug 2008 06:09:56 +0000 Subject: 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 --- .../tuscany/sca/definitions/xml/SCADefinitionsProcessor.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'java') 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; -- cgit v1.2.3