Class AnalyzerService

java.lang.Object
org.owasp.dependencycheck.analyzer.AnalyzerService

@ThreadSafe public class AnalyzerService extends Object
The Analyzer Service Loader. This class loads all services that implement Analyzer.
Author:
Jeremy Long
  • Constructor Details

    • AnalyzerService

      public AnalyzerService(ClassLoader classLoader, Settings settings)
      Creates a new instance of AnalyzerService.
      Parameters:
      classLoader - the ClassLoader to use when dynamically loading Analyzer and Update services
      settings - the configured settings
  • Method Details

    • getAnalyzers

      public List<Analyzer> getAnalyzers()
      Returns a list of all instances of the Analyzer interface.
      Returns:
      a list of Analyzers.
    • getAnalyzers

      public 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 List<Analyzer> getAnalyzers(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