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

PortletApplicationImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.container
Class PortletApplicationImpl

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.portlet.container.PortletApplicationImpl
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, PortletApplication, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class PortletApplicationImpl
extends AbstractJBossService
implements PortletApplication

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
protected  APIFactory apiFactory
           
protected  PortletApplicationContext context
           
protected  JBossApplicationMetaData jbossMetaData
           
protected  PortletApplicationMetaData metaData
           
protected  PortletContext portletContext
           
protected  java.util.Map portletModes
           
protected  java.util.LinkedHashMap portlets
           
protected  PortletApplicationRegistry registry
           
protected  java.lang.String version
           
protected  java.util.Map windowStates
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
PortletApplicationImpl(PortletApplicationMetaData metaData, JBossApplicationMetaData jbossMetaData, PortletApplicationContext context)
           
 
Method Summary
 void addContainer(PortletContainer container)
           
 APIFactory getAPIFactory()
           
 PortletApplicationContext getContext()
          Return the porlet application context.
 java.lang.String getId()
          Return the web app id.
 JBossApplicationMetaData getJBossMetaData()
           
 PortletApplicationMetaData getMetaData()
           
 PortletContainer getPortletContainer(java.lang.String name)
          Return a specific component.
 java.util.Set getPortletContainers()
          Return the set of components part of this web application.
 PortletContext getPortletContext()
           
 java.util.Map getPortletModes()
           
 PortletApplicationRegistry getRegistry()
           
 java.lang.String getVersion()
           
 java.util.Map getWindowStates()
           
 void removeContainer(PortletContainer container)
           
 void setAPIFactory(APIFactory apiFactory)
           
 void setRegistry(PortletApplicationRegistry registry)
           
 void start(java.lang.String portletName)
           
 void startService()
           
 void stop(java.lang.String portletName)
           
 void stopService()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

portlets

protected java.util.LinkedHashMap portlets

metaData

protected PortletApplicationMetaData metaData

jbossMetaData

protected JBossApplicationMetaData jbossMetaData

context

protected PortletApplicationContext context

portletContext

protected PortletContext portletContext

version

protected java.lang.String version

portletModes

protected java.util.Map portletModes

windowStates

protected java.util.Map windowStates

apiFactory

protected APIFactory apiFactory

registry

protected PortletApplicationRegistry registry
Constructor Detail

PortletApplicationImpl

public PortletApplicationImpl(PortletApplicationMetaData metaData,
                              JBossApplicationMetaData jbossMetaData,
                              PortletApplicationContext context)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: PortletApplication
Return the web app id.

Specified by:
getId in interface PortletApplication

getRegistry

public PortletApplicationRegistry getRegistry()

setRegistry

public void setRegistry(PortletApplicationRegistry registry)

getAPIFactory

public APIFactory getAPIFactory()

setAPIFactory

public void setAPIFactory(APIFactory apiFactory)

getMetaData

public PortletApplicationMetaData getMetaData()

getJBossMetaData

public JBossApplicationMetaData getJBossMetaData()

addContainer

public void addContainer(PortletContainer container)

removeContainer

public void removeContainer(PortletContainer container)

startService

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

stopService

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

getVersion

public java.lang.String getVersion()

getPortletContext

public PortletContext getPortletContext()

getPortletModes

public java.util.Map getPortletModes()

getWindowStates

public java.util.Map getWindowStates()

start

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

stop

public void stop(java.lang.String portletName)
          throws java.lang.Exception
Throws:
java.lang.Exception

getPortletContainers

public java.util.Set getPortletContainers()
Description copied from interface: PortletApplication
Return the set of components part of this web application.

Specified by:
getPortletContainers in interface PortletApplication

getPortletContainer

public PortletContainer getPortletContainer(java.lang.String name)
Description copied from interface: PortletApplication
Return a specific component.

Specified by:
getPortletContainer in interface PortletApplication

getContext

public PortletApplicationContext getContext()
Description copied from interface: PortletApplication
Return the porlet application context.

Specified by:
getContext in interface PortletApplication

toString

public java.lang.String toString()