Class EnvVarResolverProperties

java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.pulsar.io.flume.node.EnvVarResolverProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class EnvVarResolverProperties extends Properties
A class that extends the Java built-in Properties overriding. Properties.getProperty(String) to allow ${ENV_VAR_NAME}-style environment variable inclusions
See Also:
  • Constructor Details

    • EnvVarResolverProperties

      public EnvVarResolverProperties()
  • Method Details

    • resolveEnvVars

      protected static String resolveEnvVars(String input)
      Parameters:
      input - The input string with ${ENV_VAR_NAME}-style environment variable names
      Returns:
      The output string with ${ENV_VAR_NAME} replaced with their environment variable values
    • getProperty

      public String getProperty(String key)
      Overrides:
      getProperty in class Properties
      Parameters:
      key - the property key
      Returns:
      the value of the property key with ${ENV_VAR_NAME}-style environment variables replaced