Class AnalyzerService


  • @ThreadSafe
    public class AnalyzerService
    extends java.lang.Object
    The Analyzer Service Loader. This class loads all services that implement Analyzer.
    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 services
        settings - 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