public final class ConfigurationLoader extends Object
Modifier and Type | Method and Description |
---|---|
static Configuration |
loadConfiguration(InputSource aConfigSource,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
Returns the module configurations from a specified input source.
|
static Configuration |
loadConfiguration(InputStream aConfigStream,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
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 aConfig,
PropertyResolver aOverridePropsResolver)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(String aConfig,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
Returns the module configurations in a specified file.
|
public static Configuration loadConfiguration(String aConfig, PropertyResolver aOverridePropsResolver) throws CheckstyleException
aConfig
- location of config file, can be either a URL or a filenameaOverridePropsResolver
- overriding propertiesCheckstyleException
- if an error occurspublic static Configuration loadConfiguration(String aConfig, PropertyResolver aOverridePropsResolver, boolean aOmitIgnoredModules) throws CheckstyleException
aConfig
- location of config file, can be either a URL or a filenameaOverridePropsResolver
- overriding propertiesaOmitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occurs@Deprecated public static Configuration loadConfiguration(InputStream aConfigStream, PropertyResolver aOverridePropsResolver, boolean aOmitIgnoredModules) throws CheckstyleException
version using an InputSource
should be used insteadaConfigStream
- the input stream to the Checkstyle configurationaOverridePropsResolver
- overriding propertiesaOmitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occurspublic static Configuration loadConfiguration(InputSource aConfigSource, PropertyResolver aOverridePropsResolver, boolean aOmitIgnoredModules) throws CheckstyleException
aConfigSource
- the input stream to the Checkstyle configurationaOverridePropsResolver
- overriding propertiesaOmitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occursCopyright © 2001–2015. All rights reserved.