aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainModule.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r--src/main/java/org/traccar/MainModule.java6
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();
}