diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-31 04:01:44 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-31 04:01:44 +0000 |
commit | 95c83c38d814e6dbcceb9efdcd4b62d60a16c051 (patch) | |
tree | dc8b608e15c3462ab064a9b15492727ac81af19b /branches/sca-equinox/modules/binding-corba/src/main/java/org/apache/tuscany | |
parent | a8dbddbbf1f3dc615fffd3b3761c56789da4e29a (diff) |
Resolve a lot of OSGi access violations. More to be fixed.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@709339 13f79535-47bb-0310-9956-ffa450edef68
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()); |