org.jboss.portal.portlet.test
Class PortletApplicationDeployment

java.lang.Object
  extended by org.jboss.portal.portlet.test.PortletApplicationDeployment
All Implemented Interfaces:
PortletApplicationContext

public class PortletApplicationDeployment
extends java.lang.Object
implements PortletApplicationContext

Version:
$Revision: 1.1 $
Author:
Julien Viet

Constructor Summary
PortletApplicationDeployment(org.jboss.kernel.Kernel kernel, WebApp webApp, PortletApplicationMetaData metaData)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Return the classloader.
 java.lang.String getContextPath()
          Returns the context path of the web application
 javax.servlet.ServletContext getServletContext()
          Return the servlet context.
 void startPortletApplication()
          Start the portlet application and its components.
 void startPortletContainer(java.lang.String portletName)
          Start a portlet container.
 void stopPortletApplication()
          Stop the portlet application and its components.
 void stopPortletContainer(java.lang.String portletName)
          Stop a portlet container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletApplicationDeployment

public PortletApplicationDeployment(org.jboss.kernel.Kernel kernel,
                                    WebApp webApp,
                                    PortletApplicationMetaData metaData)
Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Description copied from interface: PortletApplicationContext
Return the servlet context.

Specified by:
getServletContext in interface PortletApplicationContext
Returns:
the servlet context

getClassLoader

public java.lang.ClassLoader getClassLoader()
Description copied from interface: PortletApplicationContext
Return the classloader.

Specified by:
getClassLoader in interface PortletApplicationContext
Returns:
the classloader

startPortletApplication

public void startPortletApplication()
                             throws java.lang.Exception
Description copied from interface: PortletApplicationContext
Start the portlet application and its components.

Specified by:
startPortletApplication in interface PortletApplicationContext
Throws:
java.lang.Exception

stopPortletApplication

public void stopPortletApplication()
Description copied from interface: PortletApplicationContext
Stop the portlet application and its components.

Specified by:
stopPortletApplication in interface PortletApplicationContext

startPortletContainer

public void startPortletContainer(java.lang.String portletName)
                           throws java.lang.Exception
Description copied from interface: PortletApplicationContext
Start a portlet container.

Specified by:
startPortletContainer in interface PortletApplicationContext
Parameters:
portletName - the container name
Throws:
java.lang.Exception

stopPortletContainer

public void stopPortletContainer(java.lang.String portletName)
Description copied from interface: PortletApplicationContext
Stop a portlet container.

Specified by:
stopPortletContainer in interface PortletApplicationContext
Parameters:
portletName - the container name

getContextPath

public java.lang.String getContextPath()
Description copied from interface: PortletApplicationContext
Returns the context path of the web application

Specified by:
getContextPath in interface PortletApplicationContext
Returns:
the context path