KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > pluto > factory > AbstractFactory


1 /*
2  * Copyright 2004,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.cocoon.portal.pluto.factory;
17
18 import java.util.Map JavaDoc;
19 import javax.servlet.ServletConfig JavaDoc;
20
21 import org.apache.avalon.framework.logger.AbstractLogEnabled;
22 import org.apache.pluto.factory.Factory;
23
24
25 /**
26  * Abstract implementation for all factories
27  *
28  * @author <a HREF="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
29  *
30  * @version CVS $Id: AbstractFactory.java 123407 2004-12-27 13:51:59Z cziegeler $
31  */

32 public abstract class AbstractFactory
33 extends AbstractLogEnabled
34 implements Factory {
35
36     /** The servlet config */
37     protected ServletConfig JavaDoc servletConfig;
38
39     /** The properties */
40     protected Map JavaDoc properties;
41     
42     /* (non-Javadoc)
43      * @see org.apache.pluto.factory.Factory#init(javax.servlet.ServletConfig, java.util.Map)
44      */

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

54     public void destroy() throws Exception JavaDoc {
55         // nothing to do
56
}
57 }
58
Popular Tags