aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-09 16:22:40 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-09 16:22:40 -0700
commit5b6bba55d960dcf4fc7721d1d2e75b950bb13809 (patch)
tree9e7def8584a7c33d4782de0234e90bf259a237a7 /src/main
parent6f163bdf3856323a5aa075f9a2e1aeb01b7bc598 (diff)
downloadtrackermap-server-5b6bba55d960dcf4fc7721d1d2e75b950bb13809.tar.gz
trackermap-server-5b6bba55d960dcf4fc7721d1d2e75b950bb13809.tar.bz2
trackermap-server-5b6bba55d960dcf4fc7721d1d2e75b950bb13809.zip
Make singleton
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/database/StatisticsManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/database/StatisticsManager.java b/src/main/java/org/traccar/database/StatisticsManager.java
index 3579ce7a5..d5a179cbe 100644
--- a/src/main/java/org/traccar/database/StatisticsManager.java
+++ b/src/main/java/org/traccar/database/StatisticsManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 - 2020 Anton Tananaev (anton@traccar.org)
+ * Copyright 2016 - 2022 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ import org.traccar.model.Statistics;
import org.traccar.storage.StorageException;
import javax.inject.Inject;
+import javax.inject.Singleton;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Form;
@@ -37,6 +38,7 @@ import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
+@Singleton
public class StatisticsManager {
private static final Logger LOGGER = LoggerFactory.getLogger(StatisticsManager.class);