public final class ConfigurationLoader extends 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(InputSource configSource,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules)
Deprecated.
in order to fulfill demands of BooleanParameter IDEA check.
|
static Configuration |
loadConfiguration(InputSource configSource,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules,
ThreadModeSettings threadModeSettings)
Deprecated.
in order to fulfill demands of BooleanParameter IDEA check.
|
static Configuration |
loadConfiguration(InputSource configSource,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions)
Returns the module configurations from a specified input source.
|
static Configuration |
loadConfiguration(InputSource configSource,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions,
ThreadModeSettings threadModeSettings)
Returns the module configurations from a specified input source.
|
static Configuration |
loadConfiguration(InputStream configStream,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules)
Deprecated.
As this method does not provide a valid system ID,
preventing resolution of external entities, a
version using an InputSource
should be used instead |
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules)
Deprecated.
in order to fulfill demands of BooleanParameter IDEA check.
|
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules,
ThreadModeSettings threadModeSettings)
Deprecated.
in order to fulfill demands of BooleanParameter IDEA check.
|
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver,
ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions,
ThreadModeSettings threadModeSettings)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver,
ThreadModeSettings threadModeSettings)
Returns the module configurations in a specified file.
|
public static Configuration loadConfiguration(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(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 occurs@Deprecated public static Configuration loadConfiguration(String config, PropertyResolver overridePropsResolver, boolean omitIgnoredModules) throws CheckstyleException
config
- location of config file, can be either a URL or a filenameoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occurs@Deprecated public static Configuration loadConfiguration(String config, PropertyResolver overridePropsResolver, boolean omitIgnoredModules, ThreadModeSettings threadModeSettings) throws CheckstyleException
config
- location of config file, can be either a URL or a filenameoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwisethreadModeSettings
- the thread mode configurationCheckstyleException
- if an error occurs@Deprecated public static Configuration loadConfiguration(InputStream configStream, PropertyResolver overridePropsResolver, boolean omitIgnoredModules) throws CheckstyleException
version using an InputSource
should be used insteadconfigStream
- the input stream to the Checkstyle configurationoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occurs@Deprecated public static Configuration loadConfiguration(InputSource configSource, PropertyResolver overridePropsResolver, boolean omitIgnoredModules) throws CheckstyleException
configSource
- the input stream to the Checkstyle configurationoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occurs@Deprecated public static Configuration loadConfiguration(InputSource configSource, PropertyResolver overridePropsResolver, boolean omitIgnoredModules, ThreadModeSettings threadModeSettings) throws CheckstyleException
configSource
- the input stream to the Checkstyle configurationoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwisethreadModeSettings
- the thread mode configurationCheckstyleException
- if an error occurspublic static Configuration loadConfiguration(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(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(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(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–2018. All rights reserved.