From 7128df991d737d23ee77f89bfe79ec4b79a362df Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Fri, 18 Nov 2016 13:48:45 +0700 Subject: one way for inititialization and finalization: using constructor's initialization or method init() and AutoCloseable inteface and method close() --- .../configuration/FileTransferAppConfiguration.java | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'juick-xmpp-ft/src/main/java') diff --git a/juick-xmpp-ft/src/main/java/com/juick/components/configuration/FileTransferAppConfiguration.java b/juick-xmpp-ft/src/main/java/com/juick/components/configuration/FileTransferAppConfiguration.java index 88579328..ce7509c4 100644 --- a/juick-xmpp-ft/src/main/java/com/juick/components/configuration/FileTransferAppConfiguration.java +++ b/juick-xmpp-ft/src/main/java/com/juick/components/configuration/FileTransferAppConfiguration.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 FileTransferAppConfiguration { @Inject private Environment env; - @Inject - private JdbcTemplate jdbc; @Bean public XMPPFTServer xmpp() { return new XMPPFTServer(env); } - - @Bean - public ExecutorService service() { - return Executors.newCachedThreadPool(); - } - } -- cgit v1.2.3