Package com.smartgwt.client.util
Class ConfigUtil
java.lang.Object
com.smartgwt.client.util.ConfigUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetSimpleClassName(Class targetClass) static voidsetUseWarningsForConfigurationErrors(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 voidwarnOfPostConfigInstantiation(Class callerClass, String callerMethodName, String configTypeName) static voidwarnOfPreConfigInstantiation(Class callerClass, String callerMethodName, Class configClass) static voidwarnOfPreConfigInstantiation(Class callerClass, String callerMethodName, String configTypeName)
-
Field Details
-
CONFIG_PROPERTIES
- See Also:
-
-
Constructor Details
-
ConfigUtil
public ConfigUtil()
-
-
Method Details
-
getSimpleClassName
-
warnOfPreConfigInstantiation
-
warnOfPreConfigInstantiation
-
warnOfPostConfigInstantiation
-
setUseWarningsForConfigurationErrors
public 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. A warning will be logged in this case instead of throwing an exception.- Parameters:
useWarnings- whether to report all config errors as warnings rather than exceptions
-