You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/01/25 08:18:35 UTC

svn commit: r499690 - in /incubator/tuscany/sandbox/jboynes/sca-client/src: main/java/org/osoa/sca/CallbackReference.java main/java/org/osoa/sca/ServiceReference.java test/java/sample/client/BasicClient.java

Author: jboynes
Date: Wed Jan 24 23:18:34 2007
New Revision: 499690

URL: http://svn.apache.org/viewvc?view=rev&rev=499690
Log:
rename methods to get interfaces from references to clarify what is being returned

Modified:
    incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CallbackReference.java
    incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ServiceReference.java
    incubator/tuscany/sandbox/jboynes/sca-client/src/test/java/sample/client/BasicClient.java

Modified: incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CallbackReference.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CallbackReference.java?view=diff&rev=499690&r1=499689&r2=499690
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CallbackReference.java (original)
+++ incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CallbackReference.java Wed Jan 24 23:18:34 2007
@@ -9,7 +9,7 @@
      *
      * @return a proxy that can be used to invoke the callback
      */
-    CB getSource();
+    CB getCallback();
 
     /**
      * Returns the conversation associated with this callback.

Modified: incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ServiceReference.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ServiceReference.java?view=diff&rev=499690&r1=499689&r2=499690
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ServiceReference.java (original)
+++ incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ServiceReference.java Wed Jan 24 23:18:34 2007
@@ -32,7 +32,7 @@
      *
      * @return a proxy to the target that implements the business interface associated with this reference
      */
-    B getTarget();
+    B getService();
 
     /**
      * Returns the Java class for the business interface associated with this reference.

Modified: incubator/tuscany/sandbox/jboynes/sca-client/src/test/java/sample/client/BasicClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca-client/src/test/java/sample/client/BasicClient.java?view=diff&rev=499690&r1=499689&r2=499690
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca-client/src/test/java/sample/client/BasicClient.java (original)
+++ incubator/tuscany/sandbox/jboynes/sca-client/src/test/java/sample/client/BasicClient.java Wed Jan 24 23:18:34 2007
@@ -17,7 +17,7 @@
 
     public void useComponentViaReference() {
         ServiceReference<HelloService> ref = context.locateServiceReference(HelloService.class, "helloService");
-        HelloService helloService = ref.getTarget();
+        HelloService helloService = ref.getService();
         helloService.hello("World");
 
         ServiceReference<HelloService> ref2 = context.cast(helloService);
@@ -31,7 +31,7 @@
 
     public void useReferenceViaReference() {
         ServiceReference<HelloService> ref = context.locateServiceReference(HelloService.class, "helloReference");
-        HelloService helloService = ref.getTarget();
+        HelloService helloService = ref.getService();
         helloService.hello("World");
 
         ServiceReference<HelloService> ref2 = context.cast(helloService);



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org