aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-10 02:10:37 +0700
committerGravatar Vitaly Takmazov2016-11-10 21:41:14 +0300
commit705d4f87c97dfa20eb6daa88b93ff124fa401b92 (patch)
treeb8016b2abe842f83e2bf5f743d9c58ce17781879 /juick-xmpp/src/main/java/com
parentc123a01b357ef54e7db1bb73f5fbe7762a053be1 (diff)
no need injecting "jdbc" bean - local jdbc() used
Diffstat (limited to 'juick-xmpp/src/main/java/com')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java b/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java
index 640c0d2b..9e7e6cad 100644
--- a/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java
+++ b/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java
@@ -39,8 +39,6 @@ public class XMPPConfiguration extends WebMvcConfigurationSupport {
Environment env;
@Inject
ExecutorService service;
- @Inject
- JdbcTemplate jdbc;
@Bean
JdbcTemplate jdbc() {
@@ -80,7 +78,7 @@ public class XMPPConfiguration extends WebMvcConfigurationSupport {
}
@Bean
public XMPPServer xmpp() {
- return new XMPPServer(env, service, jdbc);
+ return new XMPPServer(env, service, jdbc());
}
@Bean
public ExecutorService service() {