use of de.tudarmstadt.ukp.clarin.webanno.support.standalone.ShutdownDialogAvailableEvent in project webanno by webanno.
the class WebAnno method main.
public static void main(String[] args) throws Exception {
Optional<JWindow> splash = LoadingSplashScreen.setupScreen(WebAnno.class.getResource("splash.png"));
SpringApplicationBuilder builder = new SpringApplicationBuilder();
// Signal that we may need the shutdown dialog
builder.properties("running.from.commandline=true");
init(builder);
builder.sources(WebAnno.class);
builder.listeners(event -> {
if (event instanceof ApplicationReadyEvent || event instanceof ShutdownDialogAvailableEvent) {
splash.ifPresent(it -> it.dispose());
}
});
builder.run(args);
}
Aggregations