public class ConfigUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTIES |
Constructor and Description |
---|
ConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getSimpleClassName(java.lang.Class targetClass) |
static void |
setUseWarningsForConfigurationErrors(boolean useWarnings)
When set true, prevents IllegalStateException from being thrown when a configuration
properties object is instantiated prior to being passed in to configure another object.
|
static void |
warnOfPostConfigInstantiation(java.lang.Class callerClass,
java.lang.String callerMethodName,
java.lang.String configTypeName) |
static void |
warnOfPreConfigInstantiation(java.lang.Class callerClass,
java.lang.String callerMethodName,
java.lang.Class configClass) |
static void |
warnOfPreConfigInstantiation(java.lang.Class callerClass,
java.lang.String callerMethodName,
java.lang.String configTypeName) |
public static final java.lang.String CONFIG_PROPERTIES
public static java.lang.String getSimpleClassName(java.lang.Class targetClass)
public static void warnOfPreConfigInstantiation(java.lang.Class callerClass, java.lang.String callerMethodName, java.lang.Class configClass)
public static void warnOfPreConfigInstantiation(java.lang.Class callerClass, java.lang.String callerMethodName, java.lang.String configTypeName)
public static void warnOfPostConfigInstantiation(java.lang.Class callerClass, java.lang.String callerMethodName, java.lang.String configTypeName)
public static void setUseWarningsForConfigurationErrors(boolean useWarnings)
useWarnings
- whether to report all config errors as warnings rather than exceptions