org.apache.axis.configuration
Class DefaultEngineConfigurationFactory

java.lang.Object
  |
  +--org.apache.axis.configuration.DefaultEngineConfigurationFactory
All Implemented Interfaces:
EngineConfigurationFactory
Direct Known Subclasses:
ServletEngineConfigurationFactory

public class DefaultEngineConfigurationFactory
extends java.lang.Object
implements EngineConfigurationFactory

This is a default implementation of EngineConfigurationFactory. It is user-overrideable by a system property without affecting the caller. If you decide to override it, use delegation if you want to inherit the behaviour of this class as using class extension will result in tight loops. That is, your class should implement EngineConfigurationFactory and keep an instance of this class in a member field and delegate methods to that instance when the default behaviour is required.

Author:
Glyn Normington (glyn@apache.org)

Field Summary
protected static java.lang.String CLIENT_CONFIG_FILE
           
protected static org.apache.commons.logging.Log log
           
protected static java.lang.String SERVER_CONFIG_FILE
           
protected  EngineConfigurationFactory userFactory
           
 
Fields inherited from interface org.apache.axis.EngineConfigurationFactory
SYSTEM_PROPERTY_NAME
 
Constructor Summary
DefaultEngineConfigurationFactory()
          Create the default engine configuration and detect whether the user has overridden this with their own.
 
Method Summary
 EngineConfiguration getClientEngineConfig()
          Get a default client engine configuration.
 EngineConfiguration getServerEngineConfig()
          Get a default server engine configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

CLIENT_CONFIG_FILE

protected static final java.lang.String CLIENT_CONFIG_FILE

SERVER_CONFIG_FILE

protected static final java.lang.String SERVER_CONFIG_FILE

userFactory

protected EngineConfigurationFactory userFactory
Constructor Detail

DefaultEngineConfigurationFactory

public DefaultEngineConfigurationFactory()
Create the default engine configuration and detect whether the user has overridden this with their own.
Method Detail

getClientEngineConfig

public EngineConfiguration getClientEngineConfig()
Get a default client engine configuration.
Specified by:
getClientEngineConfig in interface EngineConfigurationFactory
Returns:
a client EngineConfiguration

getServerEngineConfig

public EngineConfiguration getServerEngineConfig()
Get a default server engine configuration.
Specified by:
getServerEngineConfig in interface EngineConfigurationFactory
Returns:
a server EngineConfiguration


Copyright © 2002 Apache XML Project. All Rights Reserved.