Package io.quarkus.runtime
Class ResettableSystemProperties
java.lang.Object
io.quarkus.runtime.ResettableSystemProperties
- All Implemented Interfaces:
AutoCloseable
Utility that allows for setting system properties when it's created and resetting them when it's closed.
This is meant to be used in try-with-resources statements
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static ResettableSystemPropertiesempty()static ResettableSystemProperties
-
Constructor Details
-
ResettableSystemProperties
-
-
Method Details
-
of
-
empty
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-