diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-27 23:08:06 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-27 23:08:06 -0800 |
commit | 15f0744893304a3f2a77d36734cdc2a2706286dd (patch) | |
tree | 5dee934a55b6e1f699390a5cda56af60fee84313 /src/org/traccar/MainModule.java | |
parent | 08754125ed5d152efe29926728033da3658c69fc (diff) | |
download | trackermap-server-15f0744893304a3f2a77d36734cdc2a2706286dd.tar.gz trackermap-server-15f0744893304a3f2a77d36734cdc2a2706286dd.tar.bz2 trackermap-server-15f0744893304a3f2a77d36734cdc2a2706286dd.zip |
Minor refactoring
Diffstat (limited to 'src/org/traccar/MainModule.java')
-rw-r--r-- | src/org/traccar/MainModule.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/MainModule.java b/src/org/traccar/MainModule.java index f784a1a71..cfd280c9f 100644 --- a/src/org/traccar/MainModule.java +++ b/src/org/traccar/MainModule.java @@ -54,6 +54,7 @@ import org.traccar.handler.GeolocationHandler; import org.traccar.handler.HemisphereHandler; import org.traccar.handler.MotionHandler; import org.traccar.handler.RemoteAddressHandler; +import org.traccar.handler.events.CommandResultEventHandler; import org.traccar.reports.model.TripsConfig; import javax.annotation.Nullable; @@ -264,6 +265,12 @@ public class MainModule extends AbstractModule { return null; } + @Singleton + @Provides + public static CommandResultEventHandler provideCommandResultEventHandler() { + return new CommandResultEventHandler(); + } + @Override protected void configure() { binder().requireExplicitBindings(); |