/** * This override of execute calls {@link CommandCreationRecord#encode} just before normal execution by super. */ @Override public void execute(Command command) { CommandCreationRecord commandCreationRecord = commandCreationMap.get(command); if (commandCreationRecord != null) { // Do the encoding. // commandCreationRecord.encode(createEncoder()); System.out.println("Executing Encoded Command: " + commandCreationRecord.getEncoding()); } else { System.out.println("Executing Unregistered Command: " + command); Thread.dumpStack(); } super.execute(command); if (encoding != null) { executeEncoding(); } }
/** * This override of execute calls {@link CommandCreationRecord#encode} just before normal execution by super. */ @Override public void execute(Command command) { CommandCreationRecord commandCreationRecord = commandCreationMap.get(command); if (commandCreationRecord != null) { // Do the encoding. // commandCreationRecord.encode(createEncoder()); System.out.println("Executing Encoded Command: " + commandCreationRecord.getEncoding()); } else { System.out.println("Executing Unregistered Command: " + command); Thread.dumpStack(); } super.execute(command); if (encoding != null) { executeEncoding(); } }