Added missing file
This commit is contained in:
parent
73d5eb168e
commit
6ccbb59858
2 changed files with 38 additions and 3 deletions
|
@ -6,14 +6,16 @@
|
||||||
:dependencies [[org.clojure/clojure "1.9.0"]
|
:dependencies [[org.clojure/clojure "1.9.0"]
|
||||||
[swiss-arrows "1.0.0"]
|
[swiss-arrows "1.0.0"]
|
||||||
[camel-snake-kebab "0.4.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"]
|
[net.openhft/compiler "2.3.0"]
|
||||||
[org.ow2.asm/asm "6.0"]
|
[org.ow2.asm/asm "6.0"]
|
||||||
[org.ow2.asm/asm-util "6.0"]
|
[org.ow2.asm/asm-util "6.0"]
|
||||||
[clojure-jsr-223 "0.1.0"]]
|
[clojure-jsr-223 "0.1.0"]
|
||||||
|
]
|
||||||
:profiles {:test {:source-paths ["test"]
|
:profiles {:test {:source-paths ["test"]
|
||||||
:resource-paths ["test-resources"]}
|
:resource-paths ["test-resources"]}
|
||||||
:uberjar {:aot :all}}
|
:uberjar {:aot :all}}
|
||||||
:aot :all
|
:aot :all
|
||||||
|
:omit-source true
|
||||||
:source-paths ["src"]
|
:source-paths ["src"]
|
||||||
:java-source-paths ["src"])
|
:java-source-paths ["src"])
|
||||||
|
|
33
src/clojurefx/ApplicationInitializer.java
Normal file
33
src/clojurefx/ApplicationInitializer.java
Normal 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue