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

PortletApplicationContextImpl - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.portlet.container
Class PortletApplicationContextImpl

java.lang.Object
  extended byorg.jboss.portal.portlet.container.PortletApplicationContextImpl
All Implemented Interfaces:
org.jboss.kernel.spi.dependency.KernelControllerContextAware, PortletApplicationContext

public class PortletApplicationContextImpl
extends java.lang.Object
implements PortletApplicationContext, org.jboss.kernel.spi.dependency.KernelControllerContextAware


Constructor Summary
PortletApplicationContextImpl(PortletApplicationRegistry registry, APIFactory apiFactory, PortletApplicationMetaData portletAppMD, JBossApplicationMetaData jbossAppMD, javax.servlet.ServletContext servletContext, java.lang.String contextPath, java.lang.ClassLoader classLoader)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Return the classloader.
 java.lang.String getContextPath()
          Return the context path.
 PortletApplicationImpl getPortletApplication()
           
 javax.servlet.ServletContext getServletContext()
          Return the servlet context.
 void setKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context)
           
 void start()
           
 void startPortlet(java.lang.String portletName)
          Attempt to start a portlet.
 void stop()
           
 void stopPortlet(java.lang.String portletName)
          Stop the portlet.
 void unsetKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletApplicationContextImpl

public PortletApplicationContextImpl(PortletApplicationRegistry registry,
                                     APIFactory apiFactory,
                                     PortletApplicationMetaData portletAppMD,
                                     JBossApplicationMetaData jbossAppMD,
                                     javax.servlet.ServletContext servletContext,
                                     java.lang.String contextPath,
                                     java.lang.ClassLoader classLoader)
Method Detail

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()

getPortletApplication

public PortletApplicationImpl getPortletApplication()

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

getContextPath

public java.lang.String getContextPath()
Description copied from interface: PortletApplicationContext
Return the context path.

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

getClassLoader

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

Specified by:
getClassLoader in interface PortletApplicationContext
Returns:
the classloader

startPortlet

public void startPortlet(java.lang.String portletName)
                  throws java.lang.Exception
Description copied from interface: PortletApplicationContext
Attempt to start a portlet.

Specified by:
startPortlet in interface PortletApplicationContext
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
Description copied from interface: PortletApplicationContext
Stop the portlet.

Specified by:
stopPortlet in interface PortletApplicationContext
Parameters:
portletName - the portlet name
Throws:
java.lang.Exception - any exception that may occur during the portlet stop

setKernelControllerContext

public void setKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context)
                                throws java.lang.Exception
Specified by:
setKernelControllerContext in interface org.jboss.kernel.spi.dependency.KernelControllerContextAware
Throws:
java.lang.Exception

unsetKernelControllerContext

public void unsetKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context)
                                  throws java.lang.Exception
Specified by:
unsetKernelControllerContext in interface org.jboss.kernel.spi.dependency.KernelControllerContextAware
Throws:
java.lang.Exception