All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.axis.configuration.DefaultEngineConfigurationFactory Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2002-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.axis.configuration;

import org.apache.axis.EngineConfiguration;
import org.apache.axis.EngineConfigurationFactory;


/**
 * This is a 'front' for replacement logic.
 * Use EngineConfigurationFactoryFinder.newFactory().
 * 
 * @author Richard A. Sitze
 * @author Glyn Normington ([email protected])
 * 
 * @deprecated
 */
public class DefaultEngineConfigurationFactory
    implements EngineConfigurationFactory
{
    protected final EngineConfigurationFactory factory;
    
    protected DefaultEngineConfigurationFactory(EngineConfigurationFactory factory) {
        this.factory = factory;
    }

    /**
     * Create the default engine configuration and detect whether the user
     * has overridden this with their own.
     */
    public DefaultEngineConfigurationFactory() {
        this(EngineConfigurationFactoryFinder.newFactory());
    }

     /**
     * Get a default client engine configuration.
     *
     * @return a client EngineConfiguration
     */
    public EngineConfiguration getClientEngineConfig() {
        return factory == null ? null : factory.getClientEngineConfig();
    }

    /**
     * Get a default server engine configuration.
     *
     * @return a server EngineConfiguration
     */
    public EngineConfiguration getServerEngineConfig() {
        return factory == null ? null : factory.getServerEngineConfig();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy