Class SystemProperties
java.lang.Object
com.aquima.interactions.foundation.utility.SystemProperties
This class can be used to retrieve system properties.
FOR INTERNAL USE ONLY
- Since:
- 6.0
- Author:
- F. van der Meer
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static File
static URL
static String
getProperty
(String key) Returns the property value defined in the java virtual machine.static boolean
static boolean
hasProperty
(String key) This method check if the specified property is defined.static void
setConfigurationLocation
(File location) This method set the location where configuration is placedstatic void
setConfigurationLocation
(URL fileUrl) This method set the location where configuration is placed
-
Method Details
-
getProperty
Returns the property value defined in the java virtual machine.- Parameters:
key
- Property name- Returns:
- The property value, which should never be null.
- Throws:
LookupFailureException
- When the property was not defined.
-
hasProperty
This method check if the specified property is defined.- Parameters:
key
- The name of the property for which should be check if it is defined.- Returns:
- Boolean indicating if the specified property is available.
-
getConfigurationLocation
-
getConfigurationLocationUrl
-
setConfigurationLocation
This method set the location where configuration is placed- Parameters:
location
- the location where configuration is location
-
setConfigurationLocation
This method set the location where configuration is placed- Parameters:
fileUrl
- the location where configuration is location
-
hasConfigurationLocation
public static boolean hasConfigurationLocation() -
clearConfigurationLocation
public static void clearConfigurationLocation()
-