@ThreadSafe public class ArtifactoryAnalyzer extends AbstractFileTypeAnalyzer
| Constructor and Description |
|---|
ArtifactoryAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
void |
analyzeDependency(Dependency dependency,
Engine engine)
Performs the analysis.
|
AnalysisPhase |
getAnalysisPhase()
Returns the analysis phase under which the analyzer runs.
|
protected java.lang.String |
getAnalyzerEnabledSettingKey()
Returns the key used in the properties file to to reference the
analyzer's enabled property.
|
protected java.io.FileFilter |
getFileFilter()
Returns the
FileFilter used to determine which files are
to be analyzed. |
java.lang.String |
getName()
Returns the analyzer's name.
|
void |
initialize(Settings settings)
Initializes the analyzer with the configured settings.
|
void |
prepareFileTypeAnalyzer(Engine engine)
Initializes the analyzer once before any analysis is performed.
|
boolean |
supportsParallelProcessing()
Whether the analyzer is configured to support parallel processing.
|
accept, getFilesMatched, newHashSet, prepareAnalyzer, setFilesMatchedanalyze, close, closeAnalyzer, getSettings, isEnabled, prepare, setEnabledpublic void initialize(Settings settings)
initialize in interface Analyzerinitialize in class AbstractAnalyzersettings - the configured settings to usepublic boolean supportsParallelProcessing()
supportsParallelProcessing in interface AnalyzersupportsParallelProcessing in class AbstractAnalyzerpublic void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
prepareFileTypeAnalyzer in class AbstractFileTypeAnalyzerengine - a reference to the dependency-check engineInitializationException - thrown when the analyzer is unable to
connect to Artifactorypublic java.lang.String getName()
protected java.lang.String getAnalyzerEnabledSettingKey()
getAnalyzerEnabledSettingKey in class AbstractAnalyzerpublic AnalysisPhase getAnalysisPhase()
protected java.io.FileFilter getFileFilter()
AbstractFileTypeAnalyzer
Returns the FileFilter used to determine which files are
to be analyzed. An example would be an analyzer that inspected Java jar
files. Implementors may use
FileFilterBuilder.
If the analyzer returns null it will not cause additional files to be analyzed, but will be executed against every file loaded.
getFileFilter in class AbstractFileTypeAnalyzerpublic void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency in class AbstractAnalyzerdependency - the dependency to analyzeengine - the engineAnalysisException - when there's an exception during analysisCopyright© 2012-21 Jeremy Long. All Rights Reserved.