org.apache.pluto.invoker.impl
Class PortletInvokerFactoryImpl
java.lang.Object
org.apache.pluto.invoker.impl.PortletInvokerFactoryImpl
- All Implemented Interfaces:
- Factory, PortletInvokerFactory
public class PortletInvokerFactoryImpl
- extends java.lang.Object
- implements PortletInvokerFactory
Method Summary |
void |
destroy()
Destroys the factory. |
PortletInvoker |
getPortletInvoker(PortletDefinition portletDefinition)
The container calls this method to get a portlet invoker from the portal. |
void |
init(javax.servlet.ServletConfig config,
java.util.Map properties)
Initializes the factory using the servlet configuration
and the factory properties. |
void |
releasePortletInvoker(PortletInvoker invoker)
The container calls this method to release a portlet invoker back to the portal, indicating
that the container is done with the invoker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servletConfig
private javax.servlet.ServletConfig servletConfig
PortletInvokerFactoryImpl
public PortletInvokerFactoryImpl()
getPortletInvoker
public PortletInvoker getPortletInvoker(PortletDefinition portletDefinition)
- Description copied from interface:
PortletInvokerFactory
- The container calls this method to get a portlet invoker from the portal.
With this abstraction, the portal should handle optional pooling of invokers.
- Specified by:
getPortletInvoker
in interface PortletInvokerFactory
- Parameters:
portletDefinition
- The portlet definition describing the portlet to be invoked.
- Returns:
- A portlet invoker ready to invoke portlets.
releasePortletInvoker
public void releasePortletInvoker(PortletInvoker invoker)
- Description copied from interface:
PortletInvokerFactory
- The container calls this method to release a portlet invoker back to the portal, indicating
that the container is done with the invoker. At this time, the invoker could be released
to an object pool.
- Specified by:
releasePortletInvoker
in interface PortletInvokerFactory
- Parameters:
invoker
- The portlet invoker ready to be released.
init
public void init(javax.servlet.ServletConfig config,
java.util.Map properties)
throws java.lang.Exception
- Description copied from interface:
Factory
- Initializes the factory using the servlet configuration
and the factory properties.
- Specified by:
init
in interface Factory
- Parameters:
config
- the servlet configurationproperties
- the factory properties
- Throws:
java.lang.Exception
- if the initialization fails
destroy
public void destroy()
throws java.lang.Exception
- Description copied from interface:
Factory
- Destroys the factory. This method allows the service
to cleanup any resources.
- Specified by:
destroy
in interface Factory
- Throws:
java.lang.Exception
- if the destruction fails