diff options
Diffstat (limited to 'src/org/traccar/http/commands/CommandType.java')
-rw-r--r-- | src/org/traccar/http/commands/CommandType.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/org/traccar/http/commands/CommandType.java b/src/org/traccar/http/commands/CommandType.java deleted file mode 100644 index 12610dbcc..000000000 --- a/src/org/traccar/http/commands/CommandType.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.traccar.http.commands; - -import org.traccar.model.Factory; - -public enum CommandType implements Factory { - STOP_POSITIONING(NoParameterCommand.class), - FIX_POSITIONING(FixPositioningCommand.class), - STOP_ENGINE(NoParameterCommand.class), - RESUME_ENGINE(NoParameterCommand.class); - - - private Class<? extends GpsCommand> commandClass; - - CommandType(Class<? extends GpsCommand> commandClass) { - this.commandClass = commandClass; - } - - @Override - public Object create() { - try { - return commandClass.newInstance(); - } catch (InstantiationException e) { - throw new RuntimeException(e); - } catch (IllegalAccessException e) { - throw new RuntimeException(e); - } - } -} |