1 55 56 package org.jboss.axis.configuration; 57 58 import org.jboss.axis.AxisProperties; 59 import org.jboss.axis.EngineConfiguration; 60 import org.jboss.axis.EngineConfigurationFactory; 61 import org.jboss.logging.Logger; 62 63 64 78 public class EngineConfigurationFactoryDefault 79 implements EngineConfigurationFactory 80 { 81 private static Logger log = Logger.getLogger(EngineConfigurationFactoryDefault.class.getName()); 82 83 public static final String OPTION_CLIENT_CONFIG_FILE = "axis.ClientConfigFile"; 84 public static final String OPTION_SERVER_CONFIG_FILE = "axis.ServerConfigFile"; 85 86 protected static final String CLIENT_CONFIG_FILE = "client-config.wsdd"; 87 protected static final String SERVER_CONFIG_FILE = "server-config.wsdd"; 88 89 private String clientConfigFile; 90 91 private String serverConfigFile; 92 93 103 public static EngineConfigurationFactory newFactory(Object param) 104 { 105 if (param != null) 106 return null; 108 120 return new EngineConfigurationFactoryDefault(); 121 } 122 123 127 protected EngineConfigurationFactoryDefault() 128 { 129 clientConfigFile = 130 AxisProperties.getProperty(OPTION_CLIENT_CONFIG_FILE, 131 CLIENT_CONFIG_FILE); 132 133 serverConfigFile = 134 AxisProperties.getProperty(OPTION_SERVER_CONFIG_FILE, 135 SERVER_CONFIG_FILE); 136 } 137 138 143 public EngineConfiguration getClientEngineConfig() 144 { 145 return new FileProvider(clientConfigFile); 146 } 147 148 153 public EngineConfiguration getServerEngineConfig() 154 { 155 return new FileProvider(serverConfigFile); 156 } 157 } 158 | Popular Tags |