org.apache.wsrp4j.consumer.driver
Class PortletDriverRegistryImpl

java.lang.Object
  extended byorg.apache.wsrp4j.consumer.driver.PortletDriverRegistryImpl
All Implemented Interfaces:
PortletDriverRegistry

public class PortletDriverRegistryImpl
extends java.lang.Object
implements PortletDriverRegistry


Method Summary
 java.util.Iterator getAllPortletDrivers()
          Get all cached portlet drivers.
static PortletDriverRegistry getInstance(ConsumerEnvironment consumerEnv)
           
 PortletDriver getPortletDriver(WSRPPortlet portlet)
          Get an portlet driver for the given portlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PortletDriverRegistry getInstance(ConsumerEnvironment consumerEnv)

getPortletDriver

public PortletDriver getPortletDriver(WSRPPortlet portlet)
                               throws WSRPException
Get an portlet driver for the given portlet. If there is no portlet driver object cached a new portlet driver will be created and returned.

Specified by:
getPortletDriver in interface PortletDriverRegistry
Parameters:
portlet - The portlet the returned portlet driver is bind to
Returns:
The portlet driver for this portlet
Throws:
WSRPException

getAllPortletDrivers

public java.util.Iterator getAllPortletDrivers()
Get all cached portlet drivers.

Specified by:
getAllPortletDrivers in interface PortletDriverRegistry
Returns:
Iterator with all portlet drivers in the registry