Package kr.motd.maven.os
Interface SystemPropertyOperationProvider
-
public interface SystemPropertyOperationProviderInterface exposing system property operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetSystemProperty(String name)Gets the system property indicated by the specified name.StringgetSystemProperty(String name, String def)Gets the system property indicated by the specified name.StringsetSystemProperty(String name, String value)Sets the system property indicated by the specified name.
-
-
-
Method Detail
-
getSystemProperty
String getSystemProperty(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
nullif there is no property with that key.
-
getSystemProperty
String getSystemProperty(String name, 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
String setSystemProperty(String name, 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
nullif it did not have one.
-
-