From 1bc50475e5a226ca3467882dc50a8264cd376159 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 23 Dec 2016 11:49:39 +0300 Subject: juick-demo -> juick-console --- juick-demo/src/main/java/com/juick/demo/Demo.java | 28 ----------------------- 1 file changed, 28 deletions(-) delete mode 100644 juick-demo/src/main/java/com/juick/demo/Demo.java (limited to 'juick-demo/src/main/java/com/juick/demo/Demo.java') diff --git a/juick-demo/src/main/java/com/juick/demo/Demo.java b/juick-demo/src/main/java/com/juick/demo/Demo.java deleted file mode 100644 index db03e2e5..00000000 --- a/juick-demo/src/main/java/com/juick/demo/Demo.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.juick.demo; - -import ch.vorburger.exec.ManagedProcessException; -import com.juick.demo.configuration.DemoAppConfiguration; -import org.springframework.context.annotation.AnnotationConfigApplicationContext; -import org.springframework.core.env.SimpleCommandLinePropertySource; - -/** - * Created by vitalyster on 30.08.2016. - */ -public class Demo { - - public static void main(String ...args) throws ManagedProcessException { - final AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(); - - // setup configuration - applicationContext.register(DemoAppConfiguration.class); - // add CLI property source - applicationContext.getEnvironment().getPropertySources() - .addLast(new SimpleCommandLinePropertySource(args)); - - // setup all the dependencies (refresh) and make them run (start) - applicationContext.refresh(); - applicationContext.start(); - DemoApp demoApp = new DemoApp(applicationContext); - demoApp.start(); - } -} -- cgit v1.2.3