1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package inc.che.jarinspector;
20
21
22
23 import inc.che.common.audio.AudioPlayer;
24 import inc.che.common.config.Config;
25 import inc.che.common.resource.ResourceManager;
26
27 import java.util.Locale;
28
29 import org.apache.log4j.Logger;
30
31 /***
32 * <b>Mainclass for Che Inc. JarInspector</b>
33 * @version $Id: JarInspector.java,v 1.1 2005/03/06 12:56:57 stevemcmee Exp $
34 * @author <address> Steve McMee <stevemcmee@sourceforge.net> </address>
35 */
36
37 public final class JarInspector {
38
39 /*** CVS ID of this file */
40 public static final String CVS_ID =
41 "$Id: JarInspector.java,v 1.1 2005/03/06 12:56:57 stevemcmee Exp $";
42
43 /*** logger instance for this class */
44
45 private static Logger log = Logger.getLogger(JarInspector.class);
46
47 /***
48 * configuration instance for this class
49 */
50 private static Config config = Config.getInstance();
51
52 /***
53 * The ResourceManager
54 */
55 private static ResourceManager resourceManager =
56 ResourceManager.getResourceManager(StringResources.TEXT_RESOURCES);
57
58 /***
59 * forbidden Constructor
60 */
61 private JarInspector() {
62 }
63 /***
64 * Main-method to start the application
65 *@param args commandline arguments
66 */
67 public static void main(String[] args) throws Exception {
68 log.debug("Lets Go :-)");
69 resourceManager.setLocale(
70 config.getLocaleParameter("locale", Locale.GERMAN));
71
72 JarInspectorFrame frame = new JarInspectorFrame();
73
74 if (config.getBooleanParameter("sound.play", true)) {
75 try {
76
77 AudioPlayer.play(
78 JarInspector.class.getClassLoader().getResourceAsStream(
79 "inc/che/jarinspector/resource/wav/intro.wav"));
80 } catch (Exception ex) {
81 ex.printStackTrace();
82 log.error(ex);
83 }
84 }
85
86 frame.show();
87 }
88 }