KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > invoker > impl > PortletInvokerFactoryImpl


1 /*
2  * Copyright 2003,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 package org.apache.pluto.invoker.impl;
17
18 import org.apache.pluto.factory.PortletInvokerFactory;
19 import org.apache.pluto.invoker.PortletInvoker;
20 import org.apache.pluto.om.portlet.PortletDefinition;
21
22 public class PortletInvokerFactoryImpl implements PortletInvokerFactory
23 {
24     private javax.servlet.ServletConfig JavaDoc servletConfig;
25
26     
27     /* (non-Javadoc)
28      * @see org.apache.pluto.factory.PortletInvokerFactory#getPortletInvoker(org.apache.pluto.om.portlet.PortletDefinition)
29      */

30     public PortletInvoker getPortletInvoker(PortletDefinition portletDefinition)
31     {
32         PortletInvoker invoker = new PortletInvokerImpl(portletDefinition, servletConfig);
33         return invoker;
34     }
35     
36     /* (non-Javadoc)
37      * @see org.apache.pluto.factory.PortletInvokerFactory#releasePortletInvoker(org.apache.pluto.invoker.PortletInvoker)
38      */

39     public void releasePortletInvoker(PortletInvoker invoker)
40     {
41     }
42
43     /* (non-Javadoc)
44      * @see org.apache.pluto.factory.Factory#init(javax.servlet.ServletConfig, java.util.Map)
45      */

46     public void init(javax.servlet.ServletConfig JavaDoc config, java.util.Map JavaDoc properties) throws Exception JavaDoc
47     {
48         servletConfig = config;
49     }
50
51     /* (non-Javadoc)
52      * @see org.apache.pluto.factory.Factory#destroy()
53      */

54     public void destroy() throws Exception JavaDoc
55     {
56     }
57     
58     
59 }
60
Popular Tags