1 16 17 package org.apache.axis.configuration; 18 19 import org.apache.axis.AxisProperties; 20 import org.apache.axis.EngineConfiguration; 21 import org.apache.axis.EngineConfigurationFactory; 22 import org.apache.axis.components.logger.LogFactory; 23 import org.apache.commons.logging.Log; 24 25 26 40 public class EngineConfigurationFactoryDefault 41 implements EngineConfigurationFactory 42 { 43 protected static Log log = 44 LogFactory.getLog(EngineConfigurationFactoryDefault.class.getName()); 45 46 public static final String OPTION_CLIENT_CONFIG_FILE = "axis.ClientConfigFile"; 47 public static final String OPTION_SERVER_CONFIG_FILE = "axis.ServerConfigFile"; 48 49 protected static final String CLIENT_CONFIG_FILE = "client-config.wsdd"; 50 protected static final String SERVER_CONFIG_FILE = "server-config.wsdd"; 51 52 protected String clientConfigFile; 53 protected String serverConfigFile; 54 55 65 public static EngineConfigurationFactory newFactory(Object param) { 66 if (param != null) 67 return null; 69 81 return new EngineConfigurationFactoryDefault(); 82 } 83 84 88 protected EngineConfigurationFactoryDefault() { 89 clientConfigFile = 90 AxisProperties.getProperty(OPTION_CLIENT_CONFIG_FILE, 91 CLIENT_CONFIG_FILE); 92 93 serverConfigFile = 94 AxisProperties.getProperty(OPTION_SERVER_CONFIG_FILE, 95 SERVER_CONFIG_FILE); 96 } 97 98 103 public EngineConfiguration getClientEngineConfig() { 104 return new FileProvider(clientConfigFile); 105 } 106 107 112 public EngineConfiguration getServerEngineConfig() { 113 return new FileProvider(serverConfigFile); 114 } 115 } 116 | Popular Tags |