Class AnalyzerService
- java.lang.Object
-
- org.owasp.dependencycheck.analyzer.AnalyzerService
-
@ThreadSafe public class AnalyzerService extends java.lang.Object
The Analyzer Service Loader. This class loads all services that implementAnalyzer
.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description AnalyzerService(java.lang.ClassLoader classLoader, Settings settings)
Creates a new instance of AnalyzerService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Analyzer>
getAnalyzers()
Returns a list of all instances of the Analyzer interface.java.util.List<Analyzer>
getAnalyzers(java.util.List<AnalysisPhase> phases)
Returns a list of all instances of the Analyzer interface that are bound to one of the given phases.java.util.List<Analyzer>
getAnalyzers(AnalysisPhase... phases)
Returns a list of all instances of the Analyzer interface that are bound to one of the given phases.
-
-
-
Constructor Detail
-
AnalyzerService
public AnalyzerService(java.lang.ClassLoader classLoader, Settings settings)
Creates a new instance of AnalyzerService.- Parameters:
classLoader
- the ClassLoader to use when dynamically loading Analyzer and Update servicessettings
- the configured settings
-
-
Method Detail
-
getAnalyzers
public java.util.List<Analyzer> getAnalyzers()
Returns a list of all instances of the Analyzer interface.- Returns:
- a list of Analyzers.
-
getAnalyzers
public java.util.List<Analyzer> getAnalyzers(AnalysisPhase... phases)
Returns a list of all instances of the Analyzer interface that are bound to one of the given phases.- Parameters:
phases
- the phases to obtain analyzers for- Returns:
- a list of Analyzers.
-
getAnalyzers
public java.util.List<Analyzer> getAnalyzers(java.util.List<AnalysisPhase> phases)
Returns a list of all instances of the Analyzer interface that are bound to one of the given phases.- Parameters:
phases
- the phases to obtain analyzers for- Returns:
- a list of Analyzers
-
-