diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-16 18:19:57 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-16 18:19:57 -0700 |
commit | ee9abd94265eb704b5f5dd2262f1a3460bbe2a8f (patch) | |
tree | d4362b6cf9b62ba952366a4eb6081fc576987e80 /src/main/java/org/traccar/MainModule.java | |
parent | 0de7889d5548ab16bc8dc31e8734dc48dd51d43d (diff) | |
download | trackermap-server-ee9abd94265eb704b5f5dd2262f1a3460bbe2a8f.tar.gz trackermap-server-ee9abd94265eb704b5f5dd2262f1a3460bbe2a8f.tar.bz2 trackermap-server-ee9abd94265eb704b5f5dd2262f1a3460bbe2a8f.zip |
Refactor config usage
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r-- | src/main/java/org/traccar/MainModule.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index aac11e619..a29c2c910 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -88,6 +88,7 @@ public class MainModule extends AbstractModule { @Override protected void configure() { + bind(Storage.class).to(DatabaseStorage.class); bind(Timer.class).to(HashedWheelTimer.class).in(Scopes.SINGLETON); } @@ -109,11 +110,6 @@ public class MainModule extends AbstractModule { } @Provides - public static Storage provideStorage(DataSource dataSource, ObjectMapper objectMapper) { - return new DatabaseStorage(dataSource, objectMapper); - } - - @Provides public static IdentityManager provideIdentityManager() { return Context.getIdentityManager(); } |