javax.inject.Singleton



API Populatity

40 Client projects

Project: javax

Package: javax.inject

Project Athou/commafeed in file ...om.commafeed.backend.feeds.FeedRefreshUpdater.java (2013-05-22)
@@ -4,6 +4,7 @@ import java.util.Collection;
 import java.util.List;
 
 import javax.inject.Inject;
+import javax.inject.Singleton;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -19,6 +20,7 @@ import com.commafeed.backend.pubsubhubbub.SubscriptionHandler;
 import com.commafeed.backend.services.ApplicationSettingsService;
 import com.commafeed.backend.services.FeedUpdateService;
 
+@Singleton
 public class FeedRefreshUpdater {
 
 	protected static Logger log = LoggerFactory
Project Athou/commafeed in file ...in.java.com.commafeed.backend.feed.FeedQueues.java (2014-08-17)
@@ -6,6 +6,7 @@ import java.util.Map;
 import java.util.Queue;
 
 import javax.inject.Inject;
+import javax.inject.Singleton;
 
 import org.apache.commons.codec.digest.DigestUtils;
 import org.apache.commons.lang.time.DateUtils;
@@ -20,6 +21,7 @@ import com.google.common.collect.Lists;
 import com.google.common.collect.Maps;
 import com.google.common.collect.Queues;
 
+@Singleton
 public class FeedQueues {
 
 	private final FeedDAO feedDAO;
Project Athou/commafeed in file ...m.commafeed.backend.feed.FeedRefreshTaskGiver.java (2014-08-17)
@@ -6,6 +6,7 @@ import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 
 import javax.inject.Inject;
+import javax.inject.Singleton;
 
 import lombok.extern.slf4j.Slf4j;
 
@@ -22,6 +23,7 @@ import com.commafeed.backend.dao.UnitOfWork;
  * 
  */
 @Slf4j
+@Singleton
 public class FeedRefreshTaskGiver implements Managed {
 
 	private final SessionFactory sessionFactory;