org.jasig.portal.portlet.container
Class PortletContainerFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
PortletContainerFactoryBean()
           
 
Method Summary
protected  Object createInstance()
           
protected  void destroyInstance(Object instance)
           
protected  String getContainerName()
           
 Class<org.apache.pluto.PortletContainer> getObjectType()
           
 org.apache.pluto.OptionalContainerServices getOptionalContainerServices()
           
 String getPortletContainerName()
           
 org.apache.pluto.RequiredContainerServices getRequiredContainerServices()
           
 ServletContext getServletContext()
           
 void setOptionalContainerServices(org.apache.pluto.OptionalContainerServices optionalContainerServices)
           
 void setPortletContainerName(String portletContainerName)
           
 void setRequiredContainerServices(org.apache.pluto.RequiredContainerServices requiredContainerServices)
           
 void setServletContext(ServletContext servletContext)
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Constructor Detail

PortletContainerFactoryBean

public PortletContainerFactoryBean()
Method Detail

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.