diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-18 09:38:01 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-18 09:38:01 +0000 |
commit | 23bc8ca050d93d3a25f16485181470a9276b2649 (patch) | |
tree | c0bcffd1b1b28378e6080d957c0df5a922aa88f8 /sca-java-2.x/trunk/modules/endpoint-tribes/src | |
parent | 6924b2029c548cbb27ba28854d466227666b46bb (diff) |
Updates to match the DomainRegistry changes to rename addListener/removeListener to be addEndpointListener/removeEndpointListener as there are now multiple types of listener, and change the running composite methods to use the composite uri instead of its QName
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124143 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/endpoint-tribes/src')
2 files changed, 6 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedDomainRegistry.java b/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedDomainRegistry.java index e94b710186..9a6f362cb6 100644 --- a/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedDomainRegistry.java +++ b/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedDomainRegistry.java @@ -452,19 +452,19 @@ public class ReplicatedDomainRegistry extends BaseDomainRegistry implements Doma } @Override - public void removeRunningComposite(String contributionURI, QName name) { + public void removeRunningComposite(String contributionURI, String compositeURI) { // TODO Auto-generated method stub } @Override - public Composite getRunningComposite(String contributionURI, QName name) { + public Composite getRunningComposite(String contributionURI, String compositeURI) { // TODO Auto-generated method stub return null; } @Override - public Map<String, List<QName>> getRunningCompositeNames() { + public Map<String, List<String>> getRunningCompositeURIs() { // TODO Auto-generated method stub return null; } diff --git a/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java b/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java index b72d8e5de3..96d2119b87 100644 --- a/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java +++ b/sca-java-2.x/trunk/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java @@ -70,7 +70,7 @@ public class MultiRegTestCase implements EndpointListener { attrs1.put("receiverAutoBind", range); // attrs1.put("routes", host + ":" + port2 + " " + host + ":" + port3); ReplicatedDomainRegistry reg1 = new ReplicatedDomainRegistry(extensionPoints, attrs1, "foo", "bar"); - reg1.addListener(this); + reg1.addEndpointListener(this); reg1.start(); Map<String, String> attrs2 = new HashMap<String, String>(); @@ -80,7 +80,7 @@ public class MultiRegTestCase implements EndpointListener { attrs2.put("receiverAutoBind", range); // attrs2.put("routes", host + ":"+port1); ReplicatedDomainRegistry reg2 = new ReplicatedDomainRegistry(extensionPoints, attrs2, "foo", "bar"); - reg2.addListener(this); + reg2.addEndpointListener(this); reg2.start(); Map<String, String> attrs3 = new HashMap<String, String>(); @@ -90,7 +90,7 @@ public class MultiRegTestCase implements EndpointListener { attrs3.put("receiverAutoBind", range); // attrs3.put("routes", host + ":"+port1); ReplicatedDomainRegistry reg3 = new ReplicatedDomainRegistry(extensionPoints, attrs3, "foo", "bar"); - reg3.addListener(this); + reg3.addEndpointListener(this); reg3.start(); ep1.bind(extensionPoints, reg1); |