Package kr.motd.maven.os
Interface SystemPropertyOperationProvider
-
- All Known Implementing Classes:
Detector.SimpleSystemPropertyOperations
public interface SystemPropertyOperationProvider
Interface exposing system property operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getSystemProperty(java.lang.String name)
Gets the system property indicated by the specified name.java.lang.String
getSystemProperty(java.lang.String name, java.lang.String def)
Gets the system property indicated by the specified name.java.lang.String
setSystemProperty(java.lang.String name, java.lang.String value)
Sets the system property indicated by the specified name.
-
-
-
Method Detail
-
getSystemProperty
java.lang.String getSystemProperty(java.lang.String name)
Gets the system property indicated by the specified name.- Parameters:
name
- the name of the system property.- Returns:
- the string value of the system property, or
null
if there is no property with that key.
-
getSystemProperty
java.lang.String getSystemProperty(java.lang.String name, java.lang.String def)
Gets the system property indicated by the specified name.- Parameters:
name
- the name of the system property.def
- a default value.- Returns:
- the string value of the system property, or the default value if there is no property with that key.
-
setSystemProperty
java.lang.String setSystemProperty(java.lang.String name, java.lang.String value)
Sets the system property indicated by the specified name.- Parameters:
name
- the name of the system property.value
- the value of the system property.- Returns:
- the previous value of the system property, or
null
if it did not have one.
-
-