Class SystemProperties


  • public class SystemProperties
    extends java.lang.Object
    Since:
    3.2.3
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addSystemProperties​(java.util.Properties props)
      Thread-safe System.properties copy implementation.
      static java.util.Properties copyProperties​(java.util.Properties properties)
      Copies the given Properties object into a new Properties object, in a thread-safe manner.
      static java.util.Properties getSystemProperties()
      Returns a copy of System.getProperties() in a thread-safe manner.
      • Methods inherited from class java.lang.Object

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

      • SystemProperties

        public SystemProperties()
    • Method Detail

      • addSystemProperties

        public static void addSystemProperties​(java.util.Properties props)
        Thread-safe System.properties copy implementation.
      • getSystemProperties

        public static java.util.Properties getSystemProperties()
        Returns a copy of System.getProperties() in a thread-safe manner.
        Returns:
        System.getProperties() obtained in a thread-safe manner.
      • copyProperties

        public static java.util.Properties copyProperties​(java.util.Properties properties)
        Copies the given Properties object into a new Properties object, in a thread-safe manner.
        Parameters:
        properties - Properties to copy.
        Returns:
        Copy of the given properties.