summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core-spi
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-11 09:11:40 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-11 09:11:40 +0000
commitc983386e8d1e329f8189edaa7a2435f88408cd9a (patch)
tree6efd7d14a027d1a925a74dfd17fc06947add39fd /sca-java-2.x/trunk/modules/core-spi
parente4cee24b41a6ddbb8981c638fb444319e9401f11 (diff)
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
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/EndpointRegistry.java7
1 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/EndpointRegistry.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java
index 0f107012c1..eaeb3373d6 100644
--- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java
+++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java
@@ -27,6 +27,7 @@ import javax.xml.namespace.QName;
import org.apache.tuscany.sca.assembly.Composite;
import org.apache.tuscany.sca.assembly.Endpoint;
import org.apache.tuscany.sca.assembly.EndpointReference;
+import org.apache.tuscany.sca.contribution.Export;
/**
* The EndpointRegistry holds the active service endpoints for the SCA domain
@@ -85,8 +86,12 @@ public interface EndpointRegistry {
Composite getRunningComposite(QName name);
List<QName> getRunningCompositeNames();
- void installContribution(String uri, String url);
+ void installContribution(String uri, String url, List<QName> deployables, List<Export> exports);
List<String> getInstalledContributionURIs();
String getInstalledContributionURL(String uri);
+ List<QName> getInstalledContributionDeployables(String uri);
+ List<Export> getInstalledContributionExports(String uri);
void uninstallContribution(String uri);
+
+
}