summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/assembly-xml
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-06-21 14:31:11 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-06-21 14:31:11 +0000
commit421a641782ab71f9a9703ce93626b25716834367 (patch)
tree1d546028db5703851ec3b6bec68f179fcfd6a166 /sca-java-2.x/trunk/modules/assembly-xml
parent1b39cb5478dc178ef8f0bc6d70ead9bffc2d7934 (diff)
BWS_2018 - add a check that uri doesn't appear on a service callback binding.ws element
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@956599 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly-xml')
-rw-r--r--sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java
index 6f5b84dd56..3cf109c8cf 100644
--- a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java
+++ b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java
@@ -467,11 +467,16 @@ public class CompositeProcessor extends BaseAssemblyProcessor implements StAXArt
// Read a <callback>
callback = assemblyFactory.createCallback();
contract.setCallback(callback);
+ callback.setParentContract(contract);
//handle extension attributes
this.readExtendedAttributes(reader, name, callback, extensionAttributeProcessor, context);
policyProcessor.readPolicies(callback, reader);
+
+ // set the parent model so that binding processing can
+ // detect it they're being read as part of a callback
+ context.setParentModel(callback);
} else if (IMPLEMENTATION_COMPOSITE_QNAME.equals(name)) {