Package org.openapitools.codegen.config
Class GlobalSettings
- java.lang.Object
-
- org.openapitools.codegen.config.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 Summary
Constructors Constructor Description GlobalSettings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearProperty(String key)
static String
getProperty(String key)
static String
getProperty(String key, String defaultValue)
static void
log()
static void
reset()
static void
setProperty(String key, String value)
-
-
-
Method Detail
-
clearProperty
public static void clearProperty(String key)
-
reset
public static void reset()
-
log
public static void log()
-
-