public final class Util
extends java.lang.Object
Util class provides general shared utilities.| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
substVars(java.lang.String val,
java.lang.String currentKey,
java.util.Map<java.lang.String,java.lang.String> cycleMap,
java.util.Map<java.lang.String,java.lang.String> configProps)
This method performs property variable substitution on the specified
value.
|
public static java.lang.String substVars(java.lang.String val,
java.lang.String currentKey,
java.util.Map<java.lang.String,java.lang.String> cycleMap,
java.util.Map<java.lang.String,java.lang.String> configProps)
throws java.lang.IllegalArgumentException
val - The string on which to perform property substitution.currentKey - The key of the property being evaluated used to detect
cycles.cycleMap - Map of variable references used to detect nested cycles.configProps - Set of configuration properties.java.lang.IllegalArgumentException - If there was a syntax error in the
property placeholder syntax or a recursive variable
reference.Copyright © 2018 The Apache Software Foundation. All rights reserved.