public final class ConfigurationLoader extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurationLoader.IgnoredModulesOptions
Enum to specify behaviour regarding ignored modules.
|
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
loadConfiguration(org.xml.sax.InputSource configSource,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions)
Returns the module configurations from a specified input source.
|
static Configuration |
loadConfiguration(org.xml.sax.InputSource configSource,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions,
ThreadModeSettings threadModeSettings)
Returns the module configurations from a specified input source.
|
static Configuration |
loadConfiguration(java.lang.String config,
PropertyResolver overridePropsResolver)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(java.lang.String config,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(java.lang.String config,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions,
ThreadModeSettings threadModeSettings)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(java.lang.String config,
PropertyResolver overridePropsResolver,
ThreadModeSettings threadModeSettings)
Returns the module configurations in a specified file.
|
public static Configuration loadConfiguration(java.lang.String config, PropertyResolver overridePropsResolver) throws CheckstyleException
config - location of config file, can be either a URL or a filenameoverridePropsResolver - overriding propertiesCheckstyleException - if an error occurspublic static Configuration loadConfiguration(java.lang.String config, PropertyResolver overridePropsResolver, ThreadModeSettings threadModeSettings) throws CheckstyleException
config - location of config file, can be either a URL or a filenameoverridePropsResolver - overriding propertiesthreadModeSettings - the thread mode configurationCheckstyleException - if an error occurspublic static Configuration loadConfiguration(java.lang.String config, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions) throws CheckstyleException
config - location of config file, can be either a URL or a filenameoverridePropsResolver - overriding propertiesignoredModulesOptions - OMIT if modules with severity
'ignore' should be omitted, EXECUTE otherwiseCheckstyleException - if an error occurspublic static Configuration loadConfiguration(java.lang.String config, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions, ThreadModeSettings threadModeSettings) throws CheckstyleException
config - location of config file, can be either a URL or a filenameoverridePropsResolver - overriding propertiesignoredModulesOptions - OMIT if modules with severity
'ignore' should be omitted, EXECUTE otherwisethreadModeSettings - the thread mode configurationCheckstyleException - if an error occurspublic static Configuration loadConfiguration(org.xml.sax.InputSource configSource, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions) throws CheckstyleException
configSource - the input stream to the Checkstyle configurationoverridePropsResolver - overriding propertiesignoredModulesOptions - OMIT if modules with severity
'ignore' should be omitted, EXECUTE otherwiseCheckstyleException - if an error occurspublic static Configuration loadConfiguration(org.xml.sax.InputSource configSource, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions, ThreadModeSettings threadModeSettings) throws CheckstyleException
configSource - the input stream to the Checkstyle configurationoverridePropsResolver - overriding propertiesignoredModulesOptions - OMIT if modules with severity
'ignore' should be omitted, EXECUTE otherwisethreadModeSettings - the thread mode configurationCheckstyleException - if an error occursCopyright © 2001-2020. All Rights Reserved.