From a1c1199a2913d964e51390ffec8db8eaf1a28044 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 13 Dec 2011 09:18:35 +0000 Subject: Update to match the new Tuscany ServiceReference interface git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1213620 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/implementation/web/runtime/ComponentContextProxy.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca') diff --git a/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java b/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java index 64622ee76c..76fdf4af24 100644 --- a/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java +++ b/sca-java-2.x/trunk/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java @@ -22,7 +22,8 @@ package org.apache.tuscany.sca.implementation.web.runtime; 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.ServiceReference; * 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 implements ComponentContext { this.runtimeComponent = runtimeComponent; } - protected ComponentContext getComponentContext() { + protected TuscanyComponentContext getComponentContext() { return runtimeComponent.getComponentContext(); } @@ -66,7 +67,7 @@ public class ComponentContextProxy implements ComponentContext { return getComponentContext().getService(businessInterface, referenceName); } - public ServiceReference getServiceReference(Class businessInterface, String referenceName) { + public TuscanyServiceReference getServiceReference(Class businessInterface, String referenceName) { return getComponentContext().getServiceReference(businessInterface, referenceName); } -- cgit v1.2.3