KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > EngineConfigurationFactory


1 /*
2  * Copyright 2002-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.axis;
18
19 /**
20  * EngineConfigurationFactory is an interface used to construct
21  * concrete EngineConfiguration instances.
22  *
23  * Each EngineConfigurationFactory must also (directly) implement
24  * the following static method:
25  *
26  * //Creates and returns a new EngineConfigurationFactory.
27  * //If a factory cannot be created, return 'null'.
28  * //
29  * //The factory may return non-NULL only if:
30  * // - it knows what to do with the param (check type & process value)
31  * // - it can find it's configuration information
32  * //
33  * //@see org.apache.axis.configuration.EngineConfigurationFactoryFinder
34  *
35  * public static EngineConfigurationFactory newFactory(Object param);
36  *
37  * This is checked at runtime and a warning generated for
38  * factories found that do NOT implement this.
39  *
40  * @author Richard A. Sitze
41  * @author Glyn Normington (glyn@apache.org)
42  */

43 public interface EngineConfigurationFactory {
44     /**
45      * Property name used for setting an EngineConfiguration to be used
46      * in creating engines.
47      */

48     public static final String JavaDoc SYSTEM_PROPERTY_NAME = "axis.EngineConfigFactory";
49     
50      /**
51       * Get a default client engine configuration.
52       *
53       * @return a client EngineConfiguration
54       */

55     public EngineConfiguration getClientEngineConfig();
56
57     /**
58      * Get a default server engine configuration.
59      *
60      * @return a server EngineConfiguration
61      */

62     public EngineConfiguration getServerEngineConfig();
63 }
64
Popular Tags