1
2
3
4
5
6
7
8
9
10
11 package com.jsql.view.terminal.interaction;
12
13 import com.jsql.view.interaction.InteractionCommand;
14 import org.apache.logging.log4j.LogManager;
15 import org.apache.logging.log4j.Logger;
16
17 public class MessageBinary implements InteractionCommand {
18
19 private static final Logger LOGGER = LogManager.getRootLogger();
20
21
22
23
24 private final String text;
25
26 public MessageBinary(Object[] interactionParams) {
27 this.text = (String) interactionParams[0];
28 }
29
30 @Override
31 public void execute() {
32 LOGGER.info(this.text::trim);
33 }
34 }