org.apache.pluto.factory
Interface Factory

All Known Subinterfaces:
ActionRequestFactory, ActionResponseFactory, ControllerFactory, NamespaceMapperFactory, ObjectIDFactory, PortalContextFactory, PortletConfigFactory, PortletContextFactory, PortletInvokerFactory, PortletPreferencesFactory, PortletSessionFactory, PortletURLFactory, RenderRequestFactory, RenderResponseFactory
All Known Implementing Classes:
ActionRequestFactoryImpl, ActionResponseFactoryImpl, NamespaceMapperFactoryImpl, PortalContextFactoryImpl, PortletConfigFactoryImpl, PortletContextFactoryImpl, PortletInvokerFactoryImpl, PortletPreferencesFactoryImpl, PortletSessionFactoryImpl, PortletURLFactoryImpl, RenderRequestFactoryImpl, RenderResponseFactoryImpl

public interface Factory

This interface defines portal/container factories and their life-cycle. A Pluto defines the interfaces for the factories, and the portal implements the factory. A portal's factory implementation must be a derivative from this interface and implement the init() and destroy() methods to meet Pluto's factory contract. Factories create the shared classes between the portal and Pluto container. Implementations are created by portal provided factories. Many of the classes created by the factories are the implementations of the Java Portlet API interfaces.

Factory Managed Interfaces per Pluto requirements:

javax.portlet.ActionRequest
javax.portlet.ActionResponse
javax.portlet.RenderRequest
javax.portlet.RenderResponse
javax.portlet.PortletSession
javax.portlet.PortletConfig
javax.portlet.PortletContext
javax.portlet.PortletPreferences
javax.portlet.PortalContext
javax.portlet.PortletURL
javax.portlet.PortletPreferences
javax.portlet.PreferencesValidator
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
org.apache.pluto.invoker.PortletInvoker
org.apache.pluto.util.NamespaceMapper
org.apache.pluto.om.ControllerFactory

Pluto Service Providers

org.apache.pluto.services.information.InformationProviderService
org.apache.pluto.services.information.DynamicInformationProvider
org.apache.pluto.services.information.PortletActionProvider
org.apache.pluto.services.information.PortalContextProvider

Version:
$Id: Factory.java 106381 2004-11-24 04:59:16Z nlothian $

Method Summary
 void destroy()
          Destroys the factory.
 void init(javax.servlet.ServletConfig config, java.util.Map properties)
          Initializes the factory using the servlet configuration and the factory properties.
 

Method Detail

init

void init(javax.servlet.ServletConfig config,
          java.util.Map properties)
          throws java.lang.Exception
Initializes the factory using the servlet configuration and the factory properties.

Parameters:
config - the servlet configuration
properties - the factory properties
Throws:
java.lang.Exception - if the initialization fails

destroy

void destroy()
             throws java.lang.Exception
Destroys the factory. This method allows the service to cleanup any resources.

Throws:
java.lang.Exception - if the destruction fails