aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-bot/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'juick-xmpp-bot/src/main/java/com')
-rw-r--r--juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java3
-rw-r--r--juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java11
2 files changed, 1 insertions, 13 deletions
diff --git a/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java b/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java
index bced456b..43ed3dde 100644
--- a/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java
+++ b/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java
@@ -21,7 +21,6 @@ import rocks.xmpp.extensions.version.SoftwareVersionManager;
import rocks.xmpp.extensions.version.model.SoftwareVersion;
import javax.inject.Inject;
-import java.io.Closeable;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
@@ -29,7 +28,7 @@ import java.net.URL;
/**
* Created by vt on 12/11/2016.
*/
-public class XMPPBot implements AutoCloseable{
+public class XMPPBot implements AutoCloseable {
private static final Logger logger = LoggerFactory.getLogger(XMPPBot.class);
@Inject
JdbcTemplate jdbc;
diff --git a/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java b/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java
index 8eb45170..d1a1ed11 100644
--- a/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java
+++ b/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java
@@ -7,11 +7,8 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
-import org.springframework.jdbc.core.JdbcTemplate;
import javax.inject.Inject;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
/**
* Created by aalexeev on 11/12/16.
@@ -22,17 +19,9 @@ import java.util.concurrent.Executors;
public class BotAppConfiguration {
@Inject
private Environment env;
- @Inject
- private JdbcTemplate jdbc;
@Bean
public XMPPBot xmpp() {
return new XMPPBot(env);
}
-
- @Bean
- public ExecutorService service() {
- return Executors.newCachedThreadPool();
- }
-
}