public final class PropertyUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_PROPERTY_SEPARATOR |
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
PropertyUtil()
Utility class therefore no constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
extractAndLogProperty(java.lang.String name,
java.util.Map properties) |
static java.lang.String |
extractAndLogProperty(java.lang.String name,
java.util.Properties properties) |
static boolean |
parseBoolean(java.lang.String value)
Null safe, parser of boolean from a String
|
static java.util.Properties |
parseProperties(java.lang.String propertiesString,
java.lang.String propertySeparator)
Parse properties supplied as a comma separated list into a
Properties object |
private static final org.slf4j.Logger LOG
private static final java.lang.String DEFAULT_PROPERTY_SEPARATOR
public static java.lang.String extractAndLogProperty(java.lang.String name, java.util.Properties properties)
public static java.lang.String extractAndLogProperty(java.lang.String name, java.util.Map properties)
public static java.util.Properties parseProperties(java.lang.String propertiesString, java.lang.String propertySeparator)
Properties
objectpropertiesString
- a comma separated list such as "propertyA=s, propertyB=t"
public static boolean parseBoolean(java.lang.String value)
value
-