KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > wsrp > consumer > PortletDriverRegistry


1 package org.exoplatform.services.wsrp.consumer;
2
3 import java.util.Iterator JavaDoc;
4 import org.exoplatform.services.wsrp.exceptions.WSRPException;
5
6
7 /**
8  * This interface defines a registry which can be used to store
9  * portlet driver objects.
10  *
11  * @author Stephan Laertz
12  * @author Benjamin Mestrallet
13  */

14 public interface PortletDriverRegistry {
15
16   /**
17    * Get an portlet driver for the given portlet. If there is no portlet driver
18    * object cached a new portlet driver will be created and returned.
19    *
20    * @param portlet The portlet the returned portlet driver is bind to
21    * @return The portlet driver for this portlet
22    */

23   public PortletDriver getPortletDriver(WSRPPortlet portlet) throws WSRPException;
24
25   /**
26    * Get all cached portlet drivers.
27    *
28    * @return Iterator with all portlet drivers in the registry
29    */

30   public Iterator JavaDoc getAllPortletDrivers();
31 }
32
Popular Tags