1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.pluto.invoker;
17
18 import org.apache.pluto.factory.PortletInvokerFactory;
19 import org.apache.pluto.om.portlet.PortletDefinition;
20 import org.apache.pluto.services.factory.FactoryManager;
21
22 /***
23 * PortletInvokerAccess is a static accessor for getting and releasing portlet invokers via
24 * the portal's portlet invoker factory.
25 *
26 * @version $Id: PortletInvokerAccess.java 35916 2004-03-02 14:55:19Z cziegeler $
27 */
28 public class PortletInvokerAccess
29 {
30 private static PortletInvokerFactory invokerFactory =
31 (PortletInvokerFactory)FactoryManager.getFactory(org.apache.pluto.invoker.PortletInvoker.class);
32
33
34
35
36 public static PortletInvoker getPortletInvoker(PortletDefinition portletDefinition)
37 {
38 return invokerFactory.getPortletInvoker(portletDefinition);
39 }
40
41
42
43
44 public static void releasePortletInvoker(PortletInvoker invoker)
45 {
46 invokerFactory.releasePortletInvoker(invoker);
47 }
48 }