summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core-spi
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-13 21:35:05 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-13 21:35:05 +0000
commitb52286509963cbff89aac119389675bd3575bcb6 (patch)
treefa5c97e20838b6f03cf81e24af1ad0e943f7525c /sca-java-2.x/trunk/modules/core-spi
parentca5efc2fe6a0b714f64bdda4dbb6c3d92eb8a2e9 (diff)
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
Diffstat (limited to 'sca-java-2.x/trunk/modules/core-spi')
-rw-r--r--sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistry.java6
-rw-r--r--sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistry.java1
2 files changed, 6 insertions, 1 deletions
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<Composite> 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);