org.apache.pluto.factory
Interface PortletInvokerFactory

All Superinterfaces:
Factory
All Known Implementing Classes:
PortletInvokerFactoryImpl

public interface PortletInvokerFactory
extends Factory

Portlet Invoker Factory creates portlet invokers based on the servlet context. This class is part of the contract between Pluto and the portal implementations as defined in the interfaces under org.apache.pluto.factory The Pluto container uses portlet invokers to abstract access to portlets. An invoker interfaces defines which actions are performed between the portal and container, namely action, render and optionally load. Portlet invoker factories are implemented by the portal implementation. The Pluto container uses pluggable portlet invoker factories in order to get portlet invokers, and then invoke methods on portlets (render, action, load).

The Portlet Invoker Factory is a Pluto factory. Pluto defines a basic lifecycle for Pluto factory services in the org.apach.pluto.factory.Factory interface with standard init and destroy methods.

Version:
$Id: PortletInvokerFactory.java 156743 2005-03-10 05:50:30Z ddewolf $

Method Summary
 PortletInvoker getPortletInvoker(PortletDefinition portletDefinition)
          The container calls this method to get a portlet invoker from the portal.
 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 interface org.apache.pluto.factory.Factory
destroy, init
 

Method Detail

getPortletInvoker

public PortletInvoker getPortletInvoker(PortletDefinition portletDefinition)
The container calls this method to get a portlet invoker from the portal. With this abstraction, the portal should handle optional pooling of invokers.

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)
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.

Parameters:
invoker - The portlet invoker ready to be released.


Copyright © 2003-2005 . All Rights Reserved.