1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet;
16  
17  import javax.portlet.EventPortlet;
18  import javax.portlet.Portlet;
19  import javax.portlet.PortletConfig;
20  import javax.portlet.PortletContext;
21  import javax.portlet.PortletException;
22  import javax.portlet.ResourceServingPortlet;
23  
24  /**
25   * <a href="InvokerPortlet.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Michael Young
28   */
29  public interface InvokerPortlet
30      extends Cloneable, EventPortlet, Portlet, ResourceServingPortlet {
31  
32      public static final String INIT_INVOKER_PORTLET_NAME =
33          "com.liferay.portal.invokerPortletName";
34  
35      public InvokerPortlet create(
36              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
37              PortletContext portletContext)
38          throws PortletException;
39  
40      public InvokerPortlet create(
41              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
42              PortletConfig portletConfig, PortletContext portletContext,
43              boolean facesPortlet, boolean strutsPortlet,
44              boolean strutsBridgePortlet)
45          throws PortletException;
46  
47      public Portlet getPortlet();
48  
49      public ClassLoader getPortletClassLoader();
50  
51      public PortletConfig getPortletConfig();
52  
53      public PortletContext getPortletContext();
54  
55      public Portlet getPortletInstance();
56  
57      public Integer getExpCache();
58  
59      public boolean isDestroyable();
60  
61      public boolean isFacesPortlet();
62  
63      public boolean isStrutsBridgePortlet();
64  
65      public boolean isStrutsPortlet();
66  
67      public void prepare(
68              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
69              PortletContext portletContext)
70          throws PortletException;
71  
72      public void prepare(
73              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
74              PortletConfig portletConfig, PortletContext portletContext,
75              boolean facesPortlet, boolean strutsPortlet,
76              boolean strutsBridgePortlet)
77          throws PortletException;
78  
79      public void setPortletFilters() throws PortletException;
80  
81  }