From b52286509963cbff89aac119389675bd3575bcb6 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 13 Jun 2011 21:35:05 +0000 Subject: Update the DomainRegistry to have getters for both the registry uri and name git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135294 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java | 6 +++++- .../main/java/org/apache/tuscany/sca/runtime/DomainRegistry.java | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java index 4e5f81502f..934cfcf765 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java @@ -160,6 +160,10 @@ public abstract class BaseDomainRegistry implements DomainRegistry, LifeCycleLis } public String getDomainURI() { + return domainRegistryURI; + } + + public String getDomainName() { return domainURI; } @@ -175,7 +179,7 @@ public abstract class BaseDomainRegistry implements DomainRegistry, LifeCycleLis FactoryExtensionPoint factories = registry.getExtensionPoint(FactoryExtensionPoint.class); AssemblyFactory assemblyFactory = factories.getFactory(AssemblyFactory.class); Composite domainComposite = assemblyFactory.createComposite(); - domainComposite.setName(new QName(Base.SCA11_TUSCANY_NS, getDomainURI())); + domainComposite.setName(new QName(Base.SCA11_TUSCANY_NS, getDomainName())); domainComposite.setAutowire(false); domainComposite.setLocal(false); List domainIncludes = domainComposite.getIncludes(); diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistry.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistry.java index 7d775f203a..c5f4ce43ca 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistry.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistry.java @@ -79,6 +79,7 @@ public interface DomainRegistry { void removeEndpointListener(EndpointListener listener); String getDomainURI(); + String getDomainName(); void installContribution(ContributionDescription cd); void uninstallContribution(String uri); -- cgit v1.2.3