KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > test > server > appserver > weblogic8x > Weblogic8xAppServer


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.test.server.appserver.weblogic8x;
5
6 import org.codehaus.cargo.container.InstalledLocalContainer;
7 import org.codehaus.cargo.container.configuration.LocalConfiguration;
8 import org.codehaus.cargo.container.weblogic.WebLogic8xInstalledLocalContainer;
9
10 import com.tc.test.server.appserver.AppServerParameters;
11 import com.tc.test.server.appserver.cargo.CargoAppServer;
12
13 import java.io.File JavaDoc;
14
15 /**
16  * Weblogic8x AppServer implementation
17  */

18 public final class Weblogic8xAppServer extends CargoAppServer {
19
20   public Weblogic8xAppServer(Weblogic8xAppServerInstallation installation) {
21     super(installation);
22   }
23   
24   protected String JavaDoc cargoServerKey() {
25     return "weblogic8x";
26   }
27
28   protected InstalledLocalContainer container(LocalConfiguration config) {
29     return new WebLogic8xInstalledLocalContainer(config);
30   }
31   
32   protected void setExtraClasspath(AppServerParameters params) {
33     container().setExtraClasspath(params.classpath().split(String.valueOf(File.pathSeparatorChar)));
34   }
35   
36   protected void setConfigProperties(LocalConfiguration config) throws Exception JavaDoc {
37     //config.setProperty(WebLogicPropertySet.DOMAIN, "domain");
38
}
39   
40   protected void initiateStartupAppender(File JavaDoc sandboxDir) throws Exception JavaDoc {
41     new Weblogic8xStartupAppender().pack(sandboxDir);
42   }
43 }
Popular Tags