diff options
author | Vitaly Takmazov | 2017-01-17 16:16:16 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-01-17 16:16:16 +0300 |
commit | e901d21f98f9beb34d3322bf1f1902dd76343295 (patch) | |
tree | 4f0fd4bc5a19919756bd0ebc50f0e2548ba4d672 /juick-console/src/main/java/com/juick/console/Console.java | |
parent | e39440a08a194eeb1a3e9513037d6bd3f4b8a3e1 (diff) |
drop juick-console, add protocol handler to juick-ws
Diffstat (limited to 'juick-console/src/main/java/com/juick/console/Console.java')
-rw-r--r-- | juick-console/src/main/java/com/juick/console/Console.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/juick-console/src/main/java/com/juick/console/Console.java b/juick-console/src/main/java/com/juick/console/Console.java deleted file mode 100644 index ad858c56..00000000 --- a/juick-console/src/main/java/com/juick/console/Console.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.juick.console; - -import com.juick.console.configuration.ConsoleAppConfiguration; -import org.springframework.context.annotation.AnnotationConfigApplicationContext; -import org.springframework.core.env.SimpleCommandLinePropertySource; - -import java.io.IOException; - -/** - * Created by vitalyster on 30.08.2016. - */ -public class Console { - - public static void main(String ...args) throws IOException { - final AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(); - - // setup configuration - applicationContext.register(ConsoleAppConfiguration.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(); - applicationContext.getBean(ConsoleApp.class).start(); - } -} |