| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Map | |
| private static String | |
| public static String | Returns: The property value; may be null.The name of the property for which to extract value propertyName, Properties The properties object properties)Extract a property value by name from the given properties object. |
| public static String | Returns: The property value; may be null.The name of the property for which to extract value propertyName, Map<K, V> The properties object properties)Extract a property value by name from the given properties object. |
| public static boolean | Returns: The value.The config setting name. name, Map<K, V> The map of config values values)Get the config value as a boolean (default of false) |
| public static boolean | Returns: The value.The config setting name. name, Map<K, V> The map of config values values, boolean The default value to use if not found defaultValue)Get the config value as a boolean. |
| public static Boolean | Returns: The value.The config setting name. name, Map<K, V> The map of config values values, Boolean defaultValue)Get the config value as a boolean (default of false) |
| public static int | |
| public static Integer | Returns: The value, or null if not foundThe config setting name. name, Map<K, V> The map of config values values)Get the config value as an |
| public static long | |
| public static String | |
| public static String | |
| public static String | Returns: The value.The config setting name. name, Map<K, V> The map of config parameters. values, String The default value to use if not found. defaultValue, String... List of other supported values. Does not need to contain the default one. otherSupportedValues)Get the config value as a |
| public static Properties | Returns: cloned and masked propertiesproperties to check props, String property to mask key)replace a property by a starred version |
| public static String | Returns: The (possibly) interpolated property value.The property value to be processed for interpolation. property)Handles interpolation processing for a single property. |
| public static void | resolvePlaceHolders(Map<?, ?>
The configuration map. configurationValues)Handles interpolation processing for all entries in a properties object. |
| public static Boolean | |
| public static Map | Returns: The resulting map; never null, though perhaps empty.The name of the property for which to retrieve value propertyName, String The string defining tokens used as both entry and key/value delimiters. delim, Properties The properties object properties)Constructs a map from a property value. |
| public static Map | Returns: The resulting map; never null, though perhaps empty.The name of the property for which to retrieve value propertyName, String The string defining tokens used as both entry and key/value delimiters. delim, Map<K, V> The properties object properties)Constructs a map from a property value. |
| public static String[] | Returns: The array; never null, though may be empty.The name of the property for which to retrieve value propertyName, String The delimiter used to separate individual array elements. delim, Properties The properties object properties)Get a property value as a string array. |
| public static String[] | Returns: The array; never null, though may be empty.The string form of the string array. stringForm, String The delimiter used to separate individual array elements. delim)Convert a string to an array of strings. |
| PLACEHOLDER_START | back to summary |
|---|---|
| private static final String PLACEHOLDER_START | |
| ConfigurationHelper | back to summary |
|---|---|
| private ConfigurationHelper() Disallow instantiation | |
| clone | back to summary |
|---|---|
| public static Map Make a clone of the configuration values.
| |
| extractFromSystem | back to summary |
|---|---|
| private static String extractFromSystem(String systemPropertyName) | |
| extractPropertyValue | back to summary |
|---|---|
| public static String extractPropertyValue(String propertyName, Properties properties) Extract a property value by name from the given properties object. Both null and empty string are viewed as the same, and return null.
| |
| extractPropertyValue | back to summary |
|---|---|
| public static String extractPropertyValue(String propertyName, Map<K, V> properties) Extract a property value by name from the given properties object. Both null and empty string are viewed as the same, and return null. | |
| getBoolean | back to summary |
|---|---|
| public static boolean getBoolean(String name, Map<K, V> values) Get the config value as a boolean (default of false) | |
| getBoolean | back to summary |
|---|---|
| public static boolean getBoolean(String name, Map<K, V> values, boolean defaultValue) Get the config value as a boolean. | |
| getBooleanWrapper | back to summary |
|---|---|
| public static Boolean getBooleanWrapper(String name, Map<K, V> values, Boolean defaultValue) Get the config value as a boolean (default of false) | |
| getInt | back to summary |
|---|---|
| public static int getInt(String name, Map<K, V> values, int defaultValue) Get the config value as an int | |
| getInteger | back to summary |
|---|---|
| public static Integer getInteger(String name, Map<K, V> values) Get the config value as an | |
| getLong | back to summary |
|---|---|
| public static long getLong(String name, Map<K, V> values, int defaultValue) | |
| getString | back to summary |
|---|---|
| public static String getString(String name, Map<K, V> values) Get the config value as a | |
| getString | back to summary |
|---|---|
| public static String getString(String name, Map<K, V> values, String defaultValue) Get the config value as a | |
| getString | back to summary |
|---|---|
| public static String getString(String name, Map<K, V> values, String defaultValue, String... otherSupportedValues) Get the config value as a
| |
| maskOut | back to summary |
|---|---|
| public static Properties maskOut(Properties props, String key) replace a property by a starred version
| |
| resolvePlaceHolder | back to summary |
|---|---|
| public static String resolvePlaceHolder(String property) Handles interpolation processing for a single property. | |
| resolvePlaceHolders | back to summary |
|---|---|
| public static void resolvePlaceHolders(Map<?, ?> configurationValues) Handles interpolation processing for all entries in a properties object.
| |
| toBoolean | back to summary |
|---|---|
| public static Boolean toBoolean(Object value, boolean defaultValue) | |
| toMap | back to summary |
|---|---|
| public static Map Constructs a map from a property value. The exact behavior here is largely dependant upon what is passed in as the delimiter.
| |
| toMap | back to summary |
|---|---|
| public static Map Constructs a map from a property value. The exact behavior here is largely dependant upon what is passed in as the delimiter.
| |
| toStringArray | back to summary |
|---|---|
| public static String[] toStringArray(String propertyName, String delim, Properties properties) Get a property value as a string array.
| |
| toStringArray | back to summary |
|---|---|
| public static String[] toStringArray(String stringForm, String delim) Convert a string to an array of strings. The assumption is that the individual array elements are delimited in the source stringForm param by the delim param. | |