KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > wminstaller > install > TomcatModInst


1 package de.webman.wminstaller.install;
2
3 import java.util.*;
4 import de.webman.wminstaller.app.*;
5
6
7 public class TomcatModInst
8     implements ModuleInstaller
9 {
10     public String JavaDoc getName() {
11         return "ServletEngine (Tomcat)";
12     }
13     
14     public int pre(HashMap dict)
15         throws InstallationException
16     {
17         return INCLUDE;
18     }
19
20     public void install(HashMap dict)
21         throws InstallationException
22     {
23         String JavaDoc destdir = (String JavaDoc)dict.get(DictConstants.SELECTED_PATH);
24
25         System.out.println("Unpack tomcat to '" + destdir + "'");
26
27         // TODO: unpack
28
}
29     
30     
31     public void configure(HashMap dict)
32         throws InstallationException
33     {
34         Integer JavaDoc port = (Integer JavaDoc)dict.get(DictConstants.WEB_PORT);
35         String JavaDoc webapp = (String JavaDoc)dict.get(DictConstants.WEB_INSTANCE);
36
37         System.out.println("Configure tomcat to use port '" + port + "'");
38         System.out.println("Setup configuration for webapp '" + webapp + "'");
39
40         // TODO: configuration
41
}
42
43     public void post(HashMap dict)
44         throws InstallationException
45     {
46         // nop
47
}
48 }
49
Popular Tags