@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, setFilesMatched
analyze, close, closeAnalyzer, getSettings, isEnabled, prepare, setEnabled
public void initialize(Settings settings)
initialize
in interface Analyzer
initialize
in class AbstractAnalyzer
settings
- the configured settings to usepublic boolean supportsParallelProcessing()
supportsParallelProcessing
in interface Analyzer
supportsParallelProcessing
in class AbstractAnalyzer
public void prepareFileTypeAnalyzer(Engine engine) throws InitializationException
prepareFileTypeAnalyzer
in class AbstractFileTypeAnalyzer
engine
- 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 AbstractAnalyzer
public 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 AbstractFileTypeAnalyzer
public void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException
analyzeDependency
in class AbstractAnalyzer
dependency
- the dependency to analyzeengine
- the engineAnalysisException
- when there's an exception during analysisCopyright© 2012-21 Jeremy Long. All Rights Reserved.