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 void |
debugInitialConfiguration(java.lang.Class callerClass,
java.lang.String callerMethodName,
java.lang.String configTypeName) |
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 |
warnOfPostConfigHandlerAdd(java.lang.Class callerClass,
java.lang.String callerMethodName,
java.lang.Class argumentType) |
static void |
warnOfPostConfigInstantiation(java.lang.Class callerClass,
java.lang.String callerMethodName,
java.lang.String configTypeName) |
static void |
warnOfPostConfigModification(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) |
static void |
warnOfReconfiguration(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 warnOfPostConfigHandlerAdd(java.lang.Class callerClass, java.lang.String callerMethodName, java.lang.Class argumentType)
public static void warnOfPostConfigModification(java.lang.Class callerClass, java.lang.String callerMethodName, java.lang.String configTypeName)
public static void warnOfReconfiguration(java.lang.Class callerClass, java.lang.String callerMethodName, java.lang.String configTypeName)
public static void debugInitialConfiguration(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