Package org.owasp.dependencycheck
Class AnalysisTask
- java.lang.Object
-
- org.owasp.dependencycheck.AnalysisTask
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Void>
@ThreadSafe public class AnalysisTask extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Void>Task to support parallelism of dependency-check analysis. Analysis a singleDependencyby a specificAnalyzer.- Author:
- Stefan Neuhaus
-
-
Constructor Summary
Constructors Constructor Description AnalysisTask(Analyzer analyzer, Dependency dependency, Engine engine, java.util.List<java.lang.Throwable> exceptions)Creates a new analysis task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Voidcall()Executes the analysis task.protected booleanshouldAnalyze()Determines if the analyzer can analyze the given dependency.
-
-
-
Constructor Detail
-
AnalysisTask
public AnalysisTask(Analyzer analyzer, Dependency dependency, Engine engine, java.util.List<java.lang.Throwable> exceptions)
Creates a new analysis task.- Parameters:
analyzer- a reference of the analyzer to executedependency- the dependency to analyzeengine- the dependency-check engineexceptions- exceptions that occur during analysis will be added to this collection of exceptions
-
-
Method Detail
-
call
public java.lang.Void call()
Executes the analysis task.- Specified by:
callin interfacejava.util.concurrent.Callable<java.lang.Void>- Returns:
- null
-
shouldAnalyze
protected boolean shouldAnalyze()
Determines if the analyzer can analyze the given dependency.- Returns:
- whether or not the analyzer can analyze the dependency
-
-