@Component public class SystemPropertyUtilsImpl extends java.lang.Object implements SystemPropertyUtils
Constructor and Description |
---|
SystemPropertyUtilsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
copyDependentSystemProperties()
Some system properties are defined by external dependencies that can't be passed in
directly by Web Start, so we copy them from the web start jnlp prefixed properties
to the standard properties
|
void |
copyVariableToDefaultLocation(java.lang.String name)
Copies system properties from the javaws prefixed namespace into the default namespace
|
java.util.List<java.lang.String> |
getNormalisedProperties() |
java.lang.String |
getProperty(java.lang.String name)
Extracts system properties, either from their default name, or with the javaws prefix
|
boolean |
getPropertyAsBoolean(java.lang.String name,
boolean defaultValue)
Gets a system property as a boolean
|
java.lang.String |
getPropertyEmptyAsNull(java.lang.String name)
Extracts system properties, either from their default name, or with the javaws prefix.
|
public java.util.List<java.lang.String> getNormalisedProperties()
getNormalisedProperties
in interface SystemPropertyUtils
public java.lang.String getProperty(java.lang.String name)
SystemPropertyUtils
getProperty
in interface SystemPropertyUtils
name
- The name of the system propertypublic boolean getPropertyAsBoolean(java.lang.String name, boolean defaultValue)
SystemPropertyUtils
getPropertyAsBoolean
in interface SystemPropertyUtils
name
- The name of the propertydefaultValue
- The default value if the property is empty or nullpublic java.lang.String getPropertyEmptyAsNull(java.lang.String name)
SystemPropertyUtils
getPropertyEmptyAsNull
in interface SystemPropertyUtils
name
- The name of the system propertypublic void copyVariableToDefaultLocation(java.lang.String name)
SystemPropertyUtils
copyVariableToDefaultLocation
in interface SystemPropertyUtils
name
- The name of the variable, excluding the javaws prefixpublic void copyDependentSystemProperties()
SystemPropertyUtils
copyDependentSystemProperties
in interface SystemPropertyUtils