From 7270411d55c154e42c942caeaf4d4b942d72dea2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 8 Nov 2016 16:36:52 +0300 Subject: ws: fix injection --- juick-crosspost/src/main/java/com/juick/components/Crosspost.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-crosspost/src/main/java/com/juick/components/Crosspost.java') diff --git a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java index 493fa5e4..55d1370d 100644 --- a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java +++ b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java @@ -57,7 +57,6 @@ public class Crosspost implements DisposableBean, Stream.StreamListener, Message public final static String TWITTERURL = "https://api.twitter.com/1.1/statuses/update.json"; public final static String FBURL = "https://graph.facebook.com/me/feed"; public final static String VKURL = "https://api.vk.com/method/wall.post"; - @Inject JdbcTemplate jdbc; Stream xmpp; String twitter_consumer_key; @@ -65,8 +64,9 @@ public class Crosspost implements DisposableBean, Stream.StreamListener, Message ExecutorService service; @Inject - public Crosspost(Environment env, ExecutorService service) { + public Crosspost(Environment env, ExecutorService service, JdbcTemplate jdbc) { this.service = service; + this.jdbc = jdbc; logger.info("component initialized"); try { twitter_consumer_key = env.getProperty("twitter_consumer_key", ""); -- cgit v1.2.3