Class EnvironmentReplacer

java.lang.Object
org.qubership.atp.itf.lite.backend.components.replacer.EnvironmentReplacer

@Component public class EnvironmentReplacer extends Object
  • Constructor Details

    • EnvironmentReplacer

      public EnvironmentReplacer()
  • Method Details

    • replace

      public String replace(String text, Map<String,Object> context)
      Replace environment variable in text with provided context.
      Parameters:
      text - the text in which need to replace the envs
      context - context with variables for replacement
      Returns:
      replaced text.
    • replace

      public String replace(Matcher matcher, String value, Map<String,Object> context)
      Replace environment variable in text with provided context.
      Parameters:
      matcher - matcher for replacement
      value - the text value in which need to replace the envs
      context - context with variables for replacement
      Returns:
      replaced text.