Added missing file

This commit is contained in:
zilti 2017-12-12 03:09:16 +00:00
parent 73d5eb168e
commit 6ccbb59858
2 changed files with 38 additions and 3 deletions

View file

@ -6,14 +6,16 @@
:dependencies [[org.clojure/clojure "1.9.0"]
[swiss-arrows "1.0.0"]
[camel-snake-kebab "0.4.0"]
[com.taoensso/timbre "4.7.4" :exclusions [com.taoensso/carmine]]
[com.taoensso/timbre "4.10.0" :exclusions [com.taoensso/carmine]]
[net.openhft/compiler "2.3.0"]
[org.ow2.asm/asm "6.0"]
[org.ow2.asm/asm-util "6.0"]
[clojure-jsr-223 "0.1.0"]]
[org.ow2.asm/asm-util "6.0"]
[clojure-jsr-223 "0.1.0"]
]
:profiles {:test {:source-paths ["test"]
:resource-paths ["test-resources"]}
:uberjar {:aot :all}}
:aot :all
:omit-source true
:source-paths ["src"]
:java-source-paths ["src"])

View file

@ -0,0 +1,33 @@
package clojurefx;
import javafx.application.Application;
import javafx.stage.Stage;
import clojure.lang.IFn;
public class ApplicationInitializer extends Application {
private static IFn initfn;
private static IFn startfn;
private static IFn stopfn;
@Override
public void init() {
initfn.invoke();
}
public void start(Stage stage) {
startfn.invoke(stage);
}
public void stop() {
stopfn.invoke();
}
public static void initApp(IFn initApp, IFn startApp, IFn stopApp) {
initfn = initApp;
startfn = startApp;
stopfn = stopApp;
launch();
}
}