站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortletApplicationContext - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.container
Interface PortletApplicationContext

All Known Implementing Classes:
PortletApplicationContextImpl

public interface PortletApplicationContext

The context for a portlet application.

Version:
$Revision: 5448 $
Author:
Julien Viet

Method Summary
 java.lang.ClassLoader getClassLoader()
          Return the classloader.
 javax.servlet.ServletContext getServletContext()
          Return the servlet context.
 void startPortlet(java.lang.String portletName)
          Attempt to start a portlet.
 void stopPortlet(java.lang.String portletName)
          Stop the portlet.
 

Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Return the servlet context.

Returns:
the servlet context

getClassLoader

public java.lang.ClassLoader getClassLoader()
Return the classloader.

Returns:
the classloader

startPortlet

public void startPortlet(java.lang.String portletName)
                  throws java.lang.Exception
Attempt to start a portlet.

Parameters:
portletName - the portlet name
Throws:
java.lang.Exception - any exception that prevents the portlet to start

stopPortlet

public void stopPortlet(java.lang.String portletName)
                 throws java.lang.Exception
Stop the portlet.

Parameters:
portletName - the portlet name
Throws:
java.lang.Exception - any exception that may occur during the portlet stop