diff options
Diffstat (limited to 'branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany')
2 files changed, 4 insertions, 4 deletions
diff --git a/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBinding.java b/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBinding.java index 0b79065cc3..8ccce730cf 100644 --- a/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBinding.java +++ b/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBinding.java @@ -22,13 +22,14 @@ package org.apache.tuscany.sca.binding.corba; import javax.xml.namespace.QName; import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.xml.Constants; /** * @version $Rev$ $Date$ */ public interface CorbaBinding extends Binding { - QName BINDING_CORBA_QNAME = new QName(Constants.SCA10_TUSCANY_NS, "binding.corba"); + String SCA10_TUSCANY_NS = "http://tuscany.apache.org/xmlns/sca/1.0"; + String BINDING_CORBA = "binding.corba"; + QName BINDING_CORBA_QNAME = new QName(SCA10_TUSCANY_NS, BINDING_CORBA); String getHost(); diff --git a/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingProcessor.java b/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingProcessor.java index e86d1a2bba..930a8d39d9 100644 --- a/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingProcessor.java +++ b/branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingProcessor.java @@ -24,7 +24,6 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; -import org.apache.tuscany.sca.assembly.xml.Constants; import org.apache.tuscany.sca.assembly.xml.PolicyAttachPointProcessor; import org.apache.tuscany.sca.binding.corba.CorbaBinding; import org.apache.tuscany.sca.contribution.processor.ContributionReadException; @@ -94,7 +93,7 @@ public class CorbaBindingProcessor implements StAXArtifactProcessor<CorbaBinding */ public void write(CorbaBinding model, XMLStreamWriter writer) throws ContributionWriteException, XMLStreamException { // Write a <binding.corba> - writer.writeStartElement(Constants.SCA10_TUSCANY_NS, "binding.corba"); + writer.writeStartElement(CorbaBinding.SCA10_TUSCANY_NS, CorbaBinding.BINDING_CORBA); if (model.getName() != null) { writer.writeAttribute("name", model.getName()); |