Package org.apache.pulsar.io.flume.node
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>
A class that extends the Java built-in Properties overriding.
Properties.getProperty(String) to allow ${ENV_VAR_NAME}-style environment
variable inclusions- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String key) protected static StringresolveEnvVars(String input) Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
EnvVarResolverProperties
public EnvVarResolverProperties()
-
-
Method Details
-
resolveEnvVars
- 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
- Overrides:
getPropertyin classProperties- Parameters:
key- the property key- Returns:
- the value of the property key with ${ENV_VAR_NAME}-style environment variables replaced
-