Class SystemPropertyHelper


  • public class SystemPropertyHelper
    extends java.lang.Object
    A helper class to keep track of system properties being set and to either restore or remove them when instructed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void reset()  
      void setSystemProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)  
      void setSystemProperty​(java.lang.String key, java.lang.String value)
      Sets a system property and maintains the old value of that property to reset when instructed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemPropertyHelper

        public SystemPropertyHelper()
    • Method Detail

      • setSystemProperty

        public void setSystemProperty​(java.lang.String key,
                                      java.lang.String value)
        Sets a system property and maintains the old value of that property to reset when instructed. The
        Parameters:
        key -
        value -
      • setSystemProperties

        public void setSystemProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
      • reset

        public void reset()