View Javadoc
1   /*******************************************************************************
2    * Copyhacked (H) 2012-2020.
3    * This program and the accompanying materials
4    * are made available under no term at all, use it like
5    * you want, but share and discuss about it
6    * every time possible with every body.
7    * 
8    * Contributors:
9    *      ron190 at ymail dot com - initial implementation
10   ******************************************************************************/
11  package com.jsql.view.terminal.interaction;
12  
13  import com.jsql.util.AnsiColorUtil;
14  import com.jsql.view.interaction.InteractionCommand;
15  import org.apache.logging.log4j.LogManager;
16  import org.apache.logging.log4j.Logger;
17  
18  /**
19   * Mark the injection as invulnerable to a time based injection.
20   */
21  public class MarkTimeInvulnerable implements InteractionCommand {
22  
23      private static final Logger LOGGER = LogManager.getRootLogger();
24  
25      public MarkTimeInvulnerable(Object[] interactionParams) {
26          // Do nothing
27      }
28  
29      @Override
30      public void execute() {
31          LOGGER.debug(() -> AnsiColorUtil.addRedColor(this.getClass().getSimpleName()));
32      }
33  }