org.jasig.portal.portlet.container
Class PortletContainerFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean
org.jasig.portal.portlet.container.PortletContainerFactoryBean
- All Implemented Interfaces:
- BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean, InitializingBean, ServletContextAware
public class PortletContainerFactoryBean
- extends AbstractFactoryBean
- implements ServletContextAware, InitializingBean, DisposableBean
Factory bean for creating and initializing a PortletContainer instance. The requiredContainerServices
and optionalContaineServices properties are required. If desired the portletContainerName property can be set
to explicitly configure the container's name. By default the containers name is calculated in getContainerName()
as ServletContext.getServletContextName() + "-PlutoPortletContainer".
- Version:
- $Revision$
- Author:
- Eric Dalquist
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletContainerFactoryBean
public PortletContainerFactoryBean()
getPortletContainerName
public String getPortletContainerName()
- Returns:
- the portletContainerName
setPortletContainerName
public void setPortletContainerName(String portletContainerName)
- Parameters:
portletContainerName - the portletContainerName to set
getRequiredContainerServices
public org.apache.pluto.RequiredContainerServices getRequiredContainerServices()
- Returns:
- the requiredContainerServices
setRequiredContainerServices
public void setRequiredContainerServices(org.apache.pluto.RequiredContainerServices requiredContainerServices)
- Parameters:
requiredContainerServices - the requiredContainerServices to set
getOptionalContainerServices
public org.apache.pluto.OptionalContainerServices getOptionalContainerServices()
- Returns:
- the optionalContainerServices
setOptionalContainerServices
public void setOptionalContainerServices(org.apache.pluto.OptionalContainerServices optionalContainerServices)
- Parameters:
optionalContainerServices - the optionalContainerServices to set
getServletContext
public ServletContext getServletContext()
- Returns:
- the servletContext
setServletContext
public void setServletContext(ServletContext servletContext)
- Specified by:
setServletContext in interface ServletContextAware
createInstance
protected Object createInstance()
throws Exception
- Specified by:
createInstance in class AbstractFactoryBean
- Throws:
Exception
destroyInstance
protected void destroyInstance(Object instance)
throws Exception
- Overrides:
destroyInstance in class AbstractFactoryBean
- Throws:
Exception
getObjectType
public Class<org.apache.pluto.PortletContainer> getObjectType()
- Specified by:
getObjectType in interface FactoryBean- Specified by:
getObjectType in class AbstractFactoryBean
getContainerName
protected String getContainerName()
- Returns:
- The name to use for the pluto container.
Copyright © 2010 Jasig. All Rights Reserved.