1   /*
2    * Copyright 2000-2001,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.apache.wsrp4j.producer.provider;
18  
19  import org.apache.wsrp4j.exception.WSRPException;
20  
21  public interface Provider {
22  
23      /**
24       * Returns an instance of DescriptionHandler by calling the constructor
25       * of the corresponding class implementing the DescriptionHandler-Interface
26       *
27       * @return DescriptionHandler DescriptionHandler-instance.
28       */
29      public DescriptionHandler getDescriptionHandler();
30  
31      /**
32       * Returns an instance of PortletInvoker by calling the constructor
33       * of the corresponding class implementing the PortletInvoker-Interface
34       *
35       * @return PortletInvoker PortletInvoker-instance.
36       */
37      public PortletInvoker getPortletInvoker();
38  
39      /**
40       * Returns an instance of PortletPool by calling the constructor
41       * of the corresponding class implementing the PortletPool-Interface
42       *
43       * @return PortletPool PortletPool-instance.
44       */
45      public PortletPool getPortletPool();
46  
47      /**
48       * Returns an instance of PortletProperties by calling the constructor
49       * of the corresponding class implementing the PortletProperties-Interface
50       *
51       * @return PortletProperties PortletProperties-instance.
52       */
53      public PortletStateManager getPortletStateManager() throws WSRPException;
54  
55      /**
56       * Returns an instance of URLComposer by calling the constructor
57       * of the corresponding class implementing the URLComposer-Interface
58       *
59       * @return URLComposer URLComposer-instance.
60       */
61      public URLComposer getURLComposer();
62  
63      /**
64       * Returns an instance of the PortletRegistrationFilterWriter
65       * 
66       * @return PortletRegistrationFilterWriter
67       */
68      public PortletRegistrationFilterWriter getPortletRegistrationFilterWriter();
69  
70      /**
71       * Returns an instance of the PortletRegistrationFilter
72       * 
73       * @return PortletRegistrationFilter
74       */
75      public PortletRegistrationFilter getPortletRegistrationFilter();
76  
77  }