aboutsummaryrefslogtreecommitdiff
path: root/juick-console/src/main/java/com/juick/console/configuration
diff options
context:
space:
mode:
Diffstat (limited to 'juick-console/src/main/java/com/juick/console/configuration')
-rw-r--r--juick-console/src/main/java/com/juick/console/configuration/ConsoleAppConfiguration.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/juick-console/src/main/java/com/juick/console/configuration/ConsoleAppConfiguration.java b/juick-console/src/main/java/com/juick/console/configuration/ConsoleAppConfiguration.java
deleted file mode 100644
index 11e2609e..00000000
--- a/juick-console/src/main/java/com/juick/console/configuration/ConsoleAppConfiguration.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.juick.console.configuration;
-
-import com.juick.configuration.DataConfiguration;
-import com.juick.console.ConsoleApp;
-import com.juick.server.protocol.JuickProtocol;
-import org.springframework.beans.BeansException;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.ApplicationContextAware;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Import;
-
-/**
- * Created by vitalyster on 19.12.2016.
- */
-@Configuration
-@ComponentScan(basePackages = {"com.juick.console", "com.juick.service", "com.juick.server.protocol"})
-@Import(DataConfiguration.class)
-public class ConsoleAppConfiguration implements ApplicationContextAware {
- private ApplicationContext applicationContext;
- @Override
- public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
- this.applicationContext = applicationContext;
- }
- @Bean
- public JuickProtocol juickProtocol() {
- return new JuickProtocol("https://juick.com/");
- }
- @Bean
- public ConsoleApp app() {
- return new ConsoleApp(applicationContext);
- }
-}