1 package org.woehlke.computer.kurzweil.kochsnowflake;
2
3 import org.woehlke.computer.kurzweil.kochsnowflake.config.ComputerKurzweilProperties;
4 import org.woehlke.computer.kurzweil.kochsnowflake.view.KochSnowflakeFrame;
5
6
7
8
9
10
11
12
13
14
15
16
17 public class KochSnowflakeApplication {
18
19 private final KochSnowflakeFrame frame;
20
21 private KochSnowflakeApplication() {
22 String conf = "application.yml";
23 String jarPath = "target/koch-snowflake.jar";
24 ComputerKurzweilProperties config = ComputerKurzweilProperties.propertiesFactory(conf,jarPath);
25 frame = new KochSnowflakeFrame(config);
26 }
27
28 public void start(){
29 this.frame.start();
30 }
31
32
33
34
35
36 public static void main(String[] args) {
37 KochSnowflakeApplication application = new KochSnowflakeApplication();
38 application.start();
39 }
40 }