Refactor output writers

This commit is contained in:
AsamK 2021-08-08 17:32:55 +02:00
parent f449a242e4
commit 48b2c7ff8a
42 changed files with 327 additions and 187 deletions

View file

@ -17,9 +17,9 @@ public class JsonReceiveMessageHandler implements Manager.ReceiveMessageHandler
protected final Manager m;
private final JsonWriter jsonWriter;
public JsonReceiveMessageHandler(Manager m) {
public JsonReceiveMessageHandler(Manager m, JsonWriter jsonWriter) {
this.m = m;
jsonWriter = new JsonWriter(System.out);
this.jsonWriter = jsonWriter;
}
@Override