From c983386e8d1e329f8189edaa7a2435f88408cd9a Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 11 May 2011 09:11:40 +0000 Subject: Update the registry to store info about a contributions deployables and exports so that distrubuted nodes are able to see what is available without having to actually go get and install a remote contribution. This is work in progress, an alternative is to just put the Contribution model object itself in the registry and have the registry impl hide the details, but this approach is easier for now as we see how things can work git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1101793 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany') diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java index 28a7952b19..fc7cf43711 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java @@ -107,7 +107,8 @@ public class NodeImpl implements Node { if (uri == null) { uri = getDefaultContributionURI(contributionURL); } - endpointRegistry.installContribution(uri, contributionURL); + // TODO: sort out deployables and exports + endpointRegistry.installContribution(uri, contributionURL, null, null); if (startDeployables) { // TODO: sort out metadata and dependents in distributed localInstall(uri, contributionURL, metaDataURL, dependentContributionURIs, startDeployables); @@ -454,7 +455,9 @@ public class NodeImpl implements Node { } public List getInstalledContributionURIs() { - return new ArrayList(locallyInstalledContributions.keySet()); + Set ls = new HashSet(endpointRegistry.getInstalledContributionURIs()); + ls.addAll(locallyInstalledContributions.keySet()); + return new ArrayList(ls); } public Contribution getInstalledContribution(String uri) { -- cgit v1.2.3