Package kr.motd.maven.os
Class Detector.SimpleSystemPropertyOperations
- java.lang.Object
-
- kr.motd.maven.os.Detector.SimpleSystemPropertyOperations
-
- All Implemented Interfaces:
SystemPropertyOperationProvider
- Enclosing class:
- Detector
private static class Detector.SimpleSystemPropertyOperations extends java.lang.Object implements SystemPropertyOperationProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSimpleSystemPropertyOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSystemProperty(java.lang.String name)Gets the system property indicated by the specified name.java.lang.StringgetSystemProperty(java.lang.String name, java.lang.String def)Gets the system property indicated by the specified name.java.lang.StringsetSystemProperty(java.lang.String name, java.lang.String value)Sets the system property indicated by the specified name.
-
-
-
Method Detail
-
getSystemProperty
public java.lang.String getSystemProperty(java.lang.String name)
Description copied from interface:SystemPropertyOperationProviderGets the system property indicated by the specified name.- Specified by:
getSystemPropertyin interfaceSystemPropertyOperationProvider- 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
public java.lang.String getSystemProperty(java.lang.String name, java.lang.String def)Description copied from interface:SystemPropertyOperationProviderGets the system property indicated by the specified name.- Specified by:
getSystemPropertyin interfaceSystemPropertyOperationProvider- 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
public java.lang.String setSystemProperty(java.lang.String name, java.lang.String value)Description copied from interface:SystemPropertyOperationProviderSets the system property indicated by the specified name.- Specified by:
setSystemPropertyin interfaceSystemPropertyOperationProvider- 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.
-
-