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

PortletApplicationContextImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.container
Class PortletApplicationContextImpl

java.lang.Object
  extended byorg.jboss.portal.portlet.container.PortletApplicationContextImpl
All Implemented Interfaces:
PortletApplicationContext

public class PortletApplicationContextImpl
extends java.lang.Object
implements PortletApplicationContext

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
private  APIFactory apiFactory
          .
private  java.lang.ClassLoader classLoader
          .
private  JBossApplicationMetaData jbossAppMD
          .
private  KernelControllerContext kernelControllerContext
          .
private  PortletApplicationImpl portletApp
          .
private  PortletApplicationMetaData portletAppMD
          .
private  PortletApplicationRegistry registry
          .
private  javax.servlet.ServletContext servletContext
          .
 
Constructor Summary
PortletApplicationContextImpl(PortletApplicationRegistry registry, APIFactory apiFactory, PortletApplicationMetaData portletAppMD, JBossApplicationMetaData jbossAppMD, javax.servlet.ServletContext servletContext, java.lang.ClassLoader classLoader)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Return the classloader.
 PortletApplicationImpl getPortletApplication()
           
 javax.servlet.ServletContext getServletContext()
          Return the servlet context.
 void setKernelControllerContext(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(KernelControllerContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

private PortletApplicationRegistry registry
.


apiFactory

private APIFactory apiFactory
.


portletAppMD

private PortletApplicationMetaData portletAppMD
.


jbossAppMD

private JBossApplicationMetaData jbossAppMD
.


portletApp

private PortletApplicationImpl portletApp
.


kernelControllerContext

private KernelControllerContext kernelControllerContext
.


servletContext

private javax.servlet.ServletContext servletContext
.


classLoader

private java.lang.ClassLoader classLoader
.

Constructor Detail

PortletApplicationContextImpl

public PortletApplicationContextImpl(PortletApplicationRegistry registry,
                                     APIFactory apiFactory,
                                     PortletApplicationMetaData portletAppMD,
                                     JBossApplicationMetaData jbossAppMD,
                                     javax.servlet.ServletContext servletContext,
                                     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

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(KernelControllerContext context)
                                throws java.lang.Exception
Throws:
java.lang.Exception

unsetKernelControllerContext

public void unsetKernelControllerContext(KernelControllerContext context)
                                  throws java.lang.Exception
Throws:
java.lang.Exception