You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/07/16 15:28:51 UTC

svn commit: r556622 - /incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/scaDomainInfo.jsp

Author: antelder
Date: Mon Jul 16 06:28:50 2007
New Revision: 556622

URL: http://svn.apache.org/viewvc?view=rev&rev=556622
Log:
Change webapp distro to use ComponentManager

Modified:
    incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/scaDomainInfo.jsp

Modified: incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/scaDomainInfo.jsp
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/scaDomainInfo.jsp?view=diff&rev=556622&r1=556621&r2=556622
==============================================================================
--- incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/scaDomainInfo.jsp (original)
+++ incubator/tuscany/java/sca/distribution/webapp/src/main/webapp/scaDomainInfo.jsp Mon Jul 16 06:28:50 2007
@@ -18,12 +18,14 @@
 --%>
 
 <%@ page import="org.apache.tuscany.sca.host.embedded.impl.HotUpdatableSCADomain"%>
+<%@ page import="org.apache.tuscany.sca.host.management.ComponentManager"%>
 <%@ page import="org.apache.tuscany.sca.assembly.ComponentService"%>
 <%@ page import="org.apache.tuscany.sca.assembly.Binding"%>
 
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <%
    HotUpdatableSCADomain scaDomain = (HotUpdatableSCADomain) application.getAttribute("org.apache.tuscany.sca.SCADomain");
+   ComponentManager componentManager = scaDomain.getComponentManager();
 %>
 <html>
 <head><title>Apache Tuscany WebApp Runtime</title></head>
@@ -33,13 +35,13 @@
 <br>
 Components in SCA Domain:
    <%
-        java.util.Iterator i = scaDomain.getComponentNames().iterator();
+        java.util.Iterator i = componentManager.getComponentNames().iterator();
         while (i.hasNext()) {
             String compName = i.next().toString();
 
       	%><br><%=compName%><br><%
 
-            org.apache.tuscany.sca.assembly.Component comp = scaDomain.getComponent(compName);
+            org.apache.tuscany.sca.assembly.Component comp = componentManager.getComponent(compName);
             java.util.Iterator j = comp.getServices().iterator();
             while (j.hasNext()) {
                 ComponentService compService = (ComponentService)j.next();



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org