1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet;
24  
25  import javax.portlet.EventPortlet;
26  import javax.portlet.Portlet;
27  import javax.portlet.PortletConfig;
28  import javax.portlet.PortletContext;
29  import javax.portlet.PortletException;
30  import javax.portlet.ResourceServingPortlet;
31  
32  /**
33   * <a href="InvokerPortlet.java.html"><b><i>View Source</i></b></a>
34   *
35   * @author Michael Young
36   *
37   */
38  public interface InvokerPortlet
39      extends Cloneable, EventPortlet, Portlet, ResourceServingPortlet {
40  
41      public InvokerPortlet create(
42              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
43              PortletContext portletContext)
44          throws PortletException;
45  
46      public InvokerPortlet create(
47              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
48              PortletConfig portletConfig, PortletContext portletContext,
49              boolean facesPortlet, boolean strutsPortlet,
50              boolean strutsBridgePortlet)
51          throws PortletException;
52  
53      public ClassLoader getPortletClassLoader();
54  
55      public PortletConfig getPortletConfig();
56  
57      public PortletContext getPortletContext();
58  
59      public Portlet getPortletInstance();
60  
61      public Integer getExpCache();
62  
63      public boolean isDestroyable();
64  
65      public boolean isFacesPortlet();
66  
67      public boolean isStrutsBridgePortlet();
68  
69      public boolean isStrutsPortlet();
70  
71      public void prepare(
72              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
73              PortletContext portletContext)
74          throws PortletException;
75  
76      public void prepare(
77              com.liferay.portal.model.Portlet portletModel, Portlet portlet,
78              PortletConfig portletConfig, PortletContext portletContext,
79              boolean facesPortlet, boolean strutsPortlet,
80              boolean strutsBridgePortlet)
81          throws PortletException;
82  
83      public void setPortletFilters() throws PortletException;
84  
85  }