KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > portlet > tck > TCKConfigurator


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.portlet.tck;
10
11 import org.jboss.portal.server.Application;
12 import org.jboss.portal.server.Component;
13 import org.jboss.portal.server.Portal;
14 import org.jboss.portal.server.deployment.SimpleConfigurator;
15
16 /**
17  * @jmx.mbean
18  * @jboss.xmbean
19  *
20  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
21  * @version $Revision: 1.2 $
22  */

23 public class TCKConfigurator extends SimpleConfigurator
24 {
25
26    protected String JavaDoc getWindowName(Portal portal, Component component)
27    {
28       Application application = component.getApplication();
29       String JavaDoc portalName = portal.getName();
30       String JavaDoc applicationName = application.getName();
31       String JavaDoc componentName = component.getName();
32       return applicationName + "/" + componentName;
33    }
34
35 }
36
Popular Tags