Class ThreadLocalConfigurationPropertiesHolder


  • public final class ThreadLocalConfigurationPropertiesHolder
    extends Object
    A container class for holding a {link ThreadLocal copy of a Properties instance.
    • Field Detail

      • properties

        @Nonnull
        private static ThreadLocal<Properties> properties
        ThreadLocal storage for the properties set.
    • Constructor Detail

      • ThreadLocalConfigurationPropertiesHolder

        private ThreadLocalConfigurationPropertiesHolder()
        Constructor.
    • Method Detail

      • getProperties

        public static Properties getProperties()
        Get the thread-local configuration Properties instance.
        Returns:
        the thread-local Properties
      • setProperties

        public static void setProperties​(Properties newProperties)
        Set the thread-local configuration Properties instance.
        Parameters:
        newProperties - the new thread-local Properties instance
      • clear

        public static void clear()
        Clear the thread-local configuration Properties instance.