tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1213617 - in /tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context: ServiceReferenceExt.java impl/ComponentContextImpl.java
Date Tue, 13 Dec 2011 09:17:42 GMT
Author: antelder
Date: Tue Dec 13 09:17:42 2011
New Revision: 1213617

URL: http://svn.apache.org/viewvc?rev=1213617&view=rev
Log:
Update core to use the Tuscany versions of the OASIS interfaces ComponentCOntext and ServiceReference

Modified:
    tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ServiceReferenceExt.java
    tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ServiceReferenceExt.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ServiceReferenceExt.java?rev=1213617&r1=1213616&r2=1213617&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ServiceReferenceExt.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ServiceReferenceExt.java
Tue Dec 13 09:17:42 2011
@@ -22,12 +22,12 @@ package org.apache.tuscany.sca.core.cont
 import java.io.Externalizable;
 
 import org.apache.tuscany.sca.runtime.RuntimeEndpointReference;
-import org.oasisopen.sca.ServiceReference;
+import org.apache.tuscany.sca.runtime.TuscanyServiceReference;
 
 /**
  * Extended ServiceReference
  */
-public interface ServiceReferenceExt<B> extends ServiceReference<B>, Externalizable
{
+public interface ServiceReferenceExt<B> extends TuscanyServiceReference<B>, Externalizable
{
     
     /**
      * Return the EndpointReference that sits behind this service reference

Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java?rev=1213617&r1=1213616&r2=1213617&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java
Tue Dec 13 09:17:42 2011
@@ -53,6 +53,7 @@ import org.apache.tuscany.sca.runtime.Ru
 import org.apache.tuscany.sca.runtime.RuntimeComponentReference;
 import org.apache.tuscany.sca.runtime.RuntimeEndpoint;
 import org.apache.tuscany.sca.runtime.RuntimeEndpointReference;
+import org.apache.tuscany.sca.runtime.TuscanyServiceReference;
 import org.oasisopen.sca.RequestContext;
 import org.oasisopen.sca.ServiceReference;
 import org.oasisopen.sca.ServiceRuntimeException;
@@ -116,7 +117,7 @@ public class ComponentContextImpl implem
         return service;
     }
 
-    public <B> ServiceReference<B> getServiceReference(Class<B> businessInterface,
String referenceName)
+    public <B> TuscanyServiceReference<B> getServiceReference(Class<B>
businessInterface, String referenceName)
         throws IllegalArgumentException {
 
         for (ComponentReference ref : component.getReferences()) {
@@ -130,7 +131,7 @@ public class ComponentContextImpl implem
                 if (ref.getEndpointReferences().size() < 1) {
                     return null;
                 }
-                ServiceReference<B> sr =
+                TuscanyServiceReference<B> sr =
                     getServiceReference(businessInterface, (RuntimeEndpointReference)getEndpointReference(ref));
                 if (sr == null) {
                     throw new IllegalArgumentException("Reference " + referenceName + " is
null");
@@ -323,9 +324,9 @@ public class ComponentContextImpl implem
      * @throws CloneNotSupportedException
      * @throws InvalidInterfaceException
      */
-    public <B> ServiceReference<B> getServiceReference(Class<B> businessInterface,
+    public <B> TuscanyServiceReference<B> getServiceReference(Class<B>
businessInterface,
                                                        RuntimeEndpointReference endpointReference)
{
-        ServiceReference<B> result = null;
+        TuscanyServiceReference<B> result = null;
 
         try {
             InterfaceContract interfaceContract = endpointReference.getComponentTypeReferenceInterfaceContract();



Mime
View raw message