Class GlobalSettings


  • public class GlobalSettings
    extends Object
    GlobalSettings encapsulates SystemProperties, since the codegen mechanism heavily relies on a stable, non-changing System Property Basis. Using plain System.(get|set|clear)Property raises Race-Conditions in combination with Code, that uses System.setProperties (e.g. maven-surefire-plugin). This provides a set of properties specific to the executing thread, such that the generator may not modify system properties consumed by other threads.
    Since:
    2018
    Author:
    gndrm
    • Constructor Detail

      • GlobalSettings

        public GlobalSettings()
    • Method Detail

      • getProperty

        public static String getProperty​(String key)
      • setProperty

        public static void setProperty​(String key,
                                       String value)
      • clearProperty

        public static void clearProperty​(String key)
      • reset

        public static void reset()