diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-18 20:43:47 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-18 20:43:47 +0000 |
commit | e9211ac4b4e84aecf3f923cc7aa25a81f7f5ae2f (patch) | |
tree | ba1ab55285e79012a4e68f5d2d819b9dcd77cd18 /sca-java-2.x/trunk/modules/binding-sca-runtime | |
parent | 8a3017b6bc6267609d9e8644bbea0171f9ebbc26 (diff) |
Update sca binding mapper to use hazelcast binding if its there
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@924985 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-sca-runtime')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DefaultSCABindingMapper.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DefaultSCABindingMapper.java b/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DefaultSCABindingMapper.java index c55edb04fe..4106158e54 100644 --- a/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DefaultSCABindingMapper.java +++ b/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DefaultSCABindingMapper.java @@ -78,9 +78,12 @@ public class DefaultSCABindingMapper implements SCABindingMapper { mappedBinding = ServiceDeclarationParser.getQName(qname); } else { // By default, mapping to binding.ws or if thats not available then binding.rmi - mappedBinding = new QName(Base.SCA11_NS, "binding.ws"); + mappedBinding = new QName(Base.SCA11_TUSCANY_NS, "binding.hazelcast"); if (registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class).getProcessor(mappedBinding) == null) { - mappedBinding = new QName(Base.SCA11_TUSCANY_NS, "binding.rmi"); + mappedBinding = new QName(Base.SCA11_NS, "binding.ws"); + if (registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class).getProcessor(mappedBinding) == null) { + mappedBinding = new QName(Base.SCA11_TUSCANY_NS, "binding.rmi"); + } } } } |