tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1213620 - /tuscany/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java
Date Tue, 13 Dec 2011 09:18:36 GMT
Author: antelder
Date: Tue Dec 13 09:18:35 2011
New Revision: 1213620

URL: http://svn.apache.org/viewvc?rev=1213620&view=rev
Log:
Update to match the new Tuscany ServiceReference interface

Modified:
    tuscany/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java

Modified: tuscany/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java?rev=1213620&r1=1213619&r2=1213620&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java
Tue Dec 13 09:18:35 2011
@@ -22,7 +22,8 @@ package org.apache.tuscany.sca.implement
 import java.util.Collection;
 
 import org.apache.tuscany.sca.runtime.RuntimeComponent;
-import org.oasisopen.sca.ComponentContext;
+import org.apache.tuscany.sca.runtime.TuscanyComponentContext;
+import org.apache.tuscany.sca.runtime.TuscanyServiceReference;
 import org.oasisopen.sca.RequestContext;
 import org.oasisopen.sca.ServiceReference;
 
@@ -30,7 +31,7 @@ import org.oasisopen.sca.ServiceReferenc
  * Proxy ComponentContext wrappering a RuntimeComponent as the
  * RuntimeComponent ComponentContext has not been created till later 
  */
-public class ComponentContextProxy implements ComponentContext {
+public class ComponentContextProxy implements TuscanyComponentContext {
 
     protected RuntimeComponent runtimeComponent;
     
@@ -38,7 +39,7 @@ public class ComponentContextProxy imple
         this.runtimeComponent = runtimeComponent;
     }
     
-    protected ComponentContext getComponentContext() {
+    protected TuscanyComponentContext getComponentContext() {
         return runtimeComponent.getComponentContext();
     }
 
@@ -66,7 +67,7 @@ public class ComponentContextProxy imple
         return getComponentContext().getService(businessInterface, referenceName);
     }
 
-    public <B> ServiceReference<B> getServiceReference(Class<B> businessInterface,
String referenceName) {
+    public <B> TuscanyServiceReference<B> getServiceReference(Class<B>
businessInterface, String referenceName) {
         return getComponentContext().getServiceReference(businessInterface, referenceName);
     }
 



Mime
View raw message