1 4 package com.tc.test.server.appserver.wasce1x; 5 6 import com.tc.test.TestConfigObject; 7 import com.tc.test.server.appserver.AppServer; 8 import com.tc.test.server.appserver.AppServerInstallation; 9 import com.tc.test.server.appserver.AppServerParameters; 10 import com.tc.test.server.appserver.NewAppServerFactory; 11 import com.tc.test.server.appserver.war.DtdWar; 12 import com.tc.test.server.appserver.war.War; 13 import com.tc.test.server.tcconfig.StandardTerracottaAppServerConfig; 14 15 import java.io.File ; 16 import java.net.URL ; 17 import java.util.Properties ; 18 19 23 public final class Wasce1xAppServerFactory extends NewAppServerFactory { 24 25 public Wasce1xAppServerFactory(ProtectedKey protectedKey, TestConfigObject config) { 27 super(protectedKey, config); 28 } 29 30 public AppServerParameters createParameters(String instanceName, Properties props) { 31 return new Wasce1xAppServerParameters(instanceName, props, config.sessionClasspath()); 32 } 33 34 public AppServer createAppServer(AppServerInstallation installation) { 35 return new Wasce1xAppServer((Wasce1xAppServerInstallation) installation); 36 } 37 38 public AppServerInstallation createInstallation(URL host, File serverDir, File workingDir) throws Exception { 39 return new Wasce1xAppServerInstallation(host, serverDir, workingDir, config.appserverMajorVersion(), config 40 .appserverMinorVersion()); 41 } 42 43 public AppServerInstallation createInstallation(File home, File workingDir) throws Exception { 44 return new Wasce1xAppServerInstallation(home, workingDir, config.appserverMajorVersion(), config 45 .appserverMinorVersion()); 46 } 47 48 public War createWar(String appName) { 49 return new DtdWar(appName); 50 } 51 52 public StandardTerracottaAppServerConfig createTcConfig(File baseDir) { 53 return new Wasce1xAppServerConfig(baseDir); 54 } 55 } 56 | Popular Tags |