Source code: org/apache/axis/configuration/DefaultEngineConfigurationFactory.java
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.configuration;
18
19 import org.apache.axis.EngineConfiguration;
20 import org.apache.axis.EngineConfigurationFactory;
21
22
23 /**
24 * This is a 'front' for replacement logic.
25 * Use EngineConfigurationFactoryFinder.newFactory().
26 *
27 * @author Richard A. Sitze
28 * @author Glyn Normington (glyn@apache.org)
29 *
30 * @deprecated
31 */
32 public class DefaultEngineConfigurationFactory
33 implements EngineConfigurationFactory
34 {
35 protected final EngineConfigurationFactory factory;
36
37 protected DefaultEngineConfigurationFactory(EngineConfigurationFactory factory) {
38 this.factory = factory;
39 }
40
41 /**
42 * Create the default engine configuration and detect whether the user
43 * has overridden this with their own.
44 */
45 public DefaultEngineConfigurationFactory() {
46 this(EngineConfigurationFactoryFinder.newFactory());
47 }
48
49 /**
50 * Get a default client engine configuration.
51 *
52 * @return a client EngineConfiguration
53 */
54 public EngineConfiguration getClientEngineConfig() {
55 return factory == null ? null : factory.getClientEngineConfig();
56 }
57
58 /**
59 * Get a default server engine configuration.
60 *
61 * @return a server EngineConfiguration
62 */
63 public EngineConfiguration getServerEngineConfig() {
64 return factory == null ? null : factory.getServerEngineConfig();
65 }
66 }