From 60e12d713e971f596d6a25d4a7ee85a78ec9454e Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 10 Dec 2008 18:03:44 +0000 Subject: TUSCANY-2732 - Separate out Tuscany extension to the component context from the OSOA component context git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@725361 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/crawler/impl/CrawlerControllerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'branches/sca-java-1.x/itest/references-collection/src/main') diff --git a/branches/sca-java-1.x/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java b/branches/sca-java-1.x/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java index 41376e94aa..1ca2a3797a 100644 --- a/branches/sca-java-1.x/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java +++ b/branches/sca-java-1.x/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java @@ -24,6 +24,7 @@ import crawler.CrawlerController; import java.util.Collection; import java.util.List; +import org.apache.tuscany.sca.api.ComponentContextExtension; import org.osoa.sca.ComponentContext; import org.osoa.sca.annotations.AllowsPassByReference; import org.osoa.sca.annotations.Context; @@ -65,7 +66,7 @@ public class CrawlerControllerImpl implements CrawlerController */ public Crawler findCrawler(String crawlerId) { - Collection crawlers = componentContext.getServices(Crawler.class, "crawlers"); + Collection crawlers = ((ComponentContextExtension)componentContext).getServices(Crawler.class, "crawlers"); for (Crawler crawler : crawlers) { String id = crawler.getCrawlerId(); -- cgit v1.2.3