summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.4/itest/references-collection/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-12-10 10:33:50 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-12-10 10:33:50 +0000
commit9809f8dcf79ef1619eefea3e7b9b3d7abacdd007 (patch)
tree26cf9d867ab6525b54c48689e0691bde045136ca /branches/sca-java-1.4/itest/references-collection/src
parent15f1ab29b1aa8c99828fb3ab58869506cdc56dd8 (diff)
TUSCANY-2732 - Separate a Tuscany extension to the component context from the OSOA component context
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@725052 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.4/itest/references-collection/src')
-rw-r--r--branches/sca-java-1.4/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/branches/sca-java-1.4/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java b/branches/sca-java-1.4/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java
index 41376e94aa..1ca2a3797a 100644
--- a/branches/sca-java-1.4/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java
+++ b/branches/sca-java-1.4/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<Crawler> crawlers = componentContext.getServices(Crawler.class, "crawlers");
+ Collection<Crawler> crawlers = ((ComponentContextExtension)componentContext).getServices(Crawler.class, "crawlers");
for (Crawler crawler : crawlers)
{
String id = crawler.getCrawlerId();