summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing/itest
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-12-13 09:24:11 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-12-13 09:24:11 +0000
commit438fd75ec9cb93740700d9a37c6ea133e1c997ed (patch)
tree22f89f6c296d1de931f74899087547be75b4c9cb /sca-java-2.x/trunk/testing/itest
parent2981c1106c1a8d7336d37f59dd105455d21f3c4c (diff)
Update to use the new Tuscany ComponentContext and ServiceReference interfaces
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1213625 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest')
-rw-r--r--sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java b/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java
index 9e2ecf2f6e..a687f44dae 100644
--- a/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java
+++ b/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java
@@ -21,7 +21,6 @@ package org.apache.tuscany.sca.itest;
import org.apache.tuscany.sca.runtime.TuscanyComponentContext;
import org.apache.tuscany.sca.runtime.TuscanyServiceReference;
-import org.oasisopen.sca.ComponentContext;
import org.oasisopen.sca.annotation.Context;
import org.oasisopen.sca.annotation.Reference;
@@ -31,22 +30,14 @@ public class HelloworldClient implements Helloworld {
public Helloworld helloworldService;
@Context
- public ComponentContext componentContext;
-
- @Context
public TuscanyComponentContext tuscanyComponentContext;
@Override
public String sayHello(String name) {
-// ServiceReference<Helloworld> sr = componentContext.getServiceReference(Helloworld.class, "helloworldService");
-// ((ServiceReferenceImpl)sr).setBindingURI("http://localhost:8080/HelloworldService/Helloworld");
-
TuscanyServiceReference<Helloworld> tsr = tuscanyComponentContext.getServiceReference(Helloworld.class, "helloworldService");
-// TuscanyServiceReference<Helloworld> tsr = (TuscanyServiceReference<Helloworld>)componentContext.getServiceReference(Helloworld.class, "helloworldService");
tsr.setBindingURI("http://localhost:8080/HelloworldService/Helloworld");
-
return "client: " + tsr.getService().sayHello(name);
}
}