summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/node-api/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-02-11 23:52:07 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-02-11 23:52:07 +0000
commit4d56972f7c152fe8be1b0c65bd85ec9d02aec97e (patch)
treecacc8be103ef7b9d6bc33f888f8dc159b7c1ae90 /sca-java-2.x/trunk/modules/node-api/src
parent19d5b36f5c71a6c1a4e217528e9a9c919cda800e (diff)
Rename configURI to domainRegistryURI
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@909180 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-api/src')
-rw-r--r--sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java21
1 files changed, 6 insertions, 15 deletions
diff --git a/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java b/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java
index 05a2a43f2d..88d62e5ac8 100644
--- a/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java
+++ b/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java
@@ -144,15 +144,6 @@ public abstract class NodeFactory extends DefaultNodeConfigurationFactory {
}
}
- public List<String> getServiceNames() {
- try {
- return (List<String>)node.getClass().getMethod("getServiceNames").invoke(node);
- } catch (Throwable e) {
- handleException(e);
- return null;
- }
- }
-
}
/**
@@ -300,18 +291,18 @@ public abstract class NodeFactory extends DefaultNodeConfigurationFactory {
return createNode(configuration);
}
- public final Node createNode(URI configURI, String... locations) {
- return createNode(configURI, null, locations);
+ public final Node createNode(URI domainRegistryURI, String... locations) {
+ return createNode(domainRegistryURI, null, locations);
}
- public final Node createNode(URI configURI, String deploymentCompositeURI, String[] locations) {
+ public final Node createNode(URI domainRegistryURI, String deploymentCompositeURI, String[] locations) {
Contribution[] contributions = getContributions(Arrays.asList(locations));
NodeConfiguration configuration = createConfiguration(contributions);
if (deploymentCompositeURI != null && configuration.getContributions().size() > 0) {
configuration.getContributions().get(0).addDeploymentComposite(createURI(deploymentCompositeURI));
}
- configuration.setDomainRegistryURI(configURI.toString());
- configuration.setDomainURI(getDomainName(configURI));
+ configuration.setDomainRegistryURI(domainRegistryURI.toString());
+ configuration.setDomainURI(getDomainURI(domainRegistryURI));
return createNode(configuration);
}
@@ -319,7 +310,7 @@ public abstract class NodeFactory extends DefaultNodeConfigurationFactory {
* TODO: cleanup node use of registry uri, domain uri, and domain name
* so that its consistent across the code base
*/
- public static String getDomainName(URI configURI) {
+ public static String getDomainURI(URI configURI) {
String s = configURI.getHost();
if (s == null) {
s = configURI.getSchemeSpecificPart();