tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r1041863 - in /tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider: RuntimeSCAReferenceBindingProvider.java RuntimeSCAServiceBindingProvider.java
Date Fri, 03 Dec 2010 15:17:42 GMT
Author: slaws
Date: Fri Dec  3 15:17:41 2010
New Revision: 1041863

URL: http://svn.apache.org/viewvc?rev=1041863&view=rev
Log:
TUSCANY-3801 - Move the SCA binding up to the new async provider interfaces. 

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java
    tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAServiceBindingProvider.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java?rev=1041863&r1=1041862&r2=1041863&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java
Fri Dec  3 15:17:41 2010
@@ -30,6 +30,7 @@ import org.apache.tuscany.sca.interfaced
 import org.apache.tuscany.sca.interfacedef.Operation;
 import org.apache.tuscany.sca.invocation.InvocationChain;
 import org.apache.tuscany.sca.invocation.Invoker;
+import org.apache.tuscany.sca.provider.EndpointReferenceAsyncProvider;
 import org.apache.tuscany.sca.provider.EndpointReferenceProvider;
 import org.apache.tuscany.sca.provider.ReferenceBindingProvider;
 import org.apache.tuscany.sca.runtime.RuntimeComponent;
@@ -49,7 +50,7 @@ import org.oasisopen.sca.ServiceUnavaila
  *
  * @version $Rev$ $Date$
  */
-public class RuntimeSCAReferenceBindingProvider implements EndpointReferenceProvider {
+public class RuntimeSCAReferenceBindingProvider implements EndpointReferenceAsyncProvider
{
 
     private RuntimeEndpointReference endpointReference;
     private RuntimeComponent component;
@@ -209,7 +210,10 @@ public class RuntimeSCAReferenceBindingP
         if (distributedProvider instanceof EndpointReferenceProvider) {
             ((EndpointReferenceProvider)distributedProvider).configure();
         }
-
+    }
+    
+    public boolean supportsNativeAsync() {
+        return true;
     }
 
 }

Modified: tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAServiceBindingProvider.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAServiceBindingProvider.java?rev=1041863&r1=1041862&r2=1041863&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAServiceBindingProvider.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAServiceBindingProvider.java
Fri Dec  3 15:17:41 2010
@@ -22,6 +22,10 @@ package org.apache.tuscany.sca.binding.s
 import org.apache.tuscany.sca.core.ExtensionPointRegistry;
 import org.apache.tuscany.sca.core.UtilityExtensionPoint;
 import org.apache.tuscany.sca.interfacedef.InterfaceContract;
+import org.apache.tuscany.sca.interfacedef.Operation;
+import org.apache.tuscany.sca.invocation.Invoker;
+import org.apache.tuscany.sca.provider.EndpointAsyncProvider;
+import org.apache.tuscany.sca.provider.EndpointProvider;
 import org.apache.tuscany.sca.provider.ServiceBindingProvider;
 import org.apache.tuscany.sca.runtime.RuntimeComponentService;
 import org.apache.tuscany.sca.runtime.RuntimeEndpoint;
@@ -34,7 +38,7 @@ import org.apache.tuscany.sca.runtime.Ru
  *
  * @version $Rev$ $Date$
  */
-public class RuntimeSCAServiceBindingProvider implements ServiceBindingProvider {
+public class RuntimeSCAServiceBindingProvider implements EndpointAsyncProvider {
     private RuntimeEndpoint endpoint;
     private RuntimeComponentService service;
 
@@ -98,4 +102,16 @@ public class RuntimeSCAServiceBindingPro
         }
     }
 
+    public void configure() {
+        // TODO Auto-generated method stub   
+    }
+    
+    public boolean supportsNativeAsync() {
+        return true;
+    }
+    
+    public Invoker createAsyncResponseInvoker(Operation operation) {
+        return new SCABindingAsyncResponseInvoker(null, null);
+    }
+    
 }



Mime
View raw message