public class SystemPropertySupport extends Object
Constructor and Description |
---|
SystemPropertySupport() |
Modifier and Type | Method and Description |
---|---|
static Memento |
install(String propertyName,
String newValue)
Sets a property to the specified value, returning a memento to restore it.
|
static Memento |
preserve(String propertyName)
Returns a memento to restore the specified property to its current value.
|
public static Memento install(String propertyName, String newValue)
propertyName
- the name of the property to setnewValue
- the new value for the propertyCopyright © 2024. All rights reserved.