Object DependencyGraphConverter

  • All Implemented Interfaces:

    
    public class DependencyGraphConverter
    
                        

    An object that supports the conversion of AnalyzerResults to the dependency graph format.

    The main conversion function takes an AnalyzerResult and iterates over all projects contained in it. Each project that still uses the dependency tree representation (i.e. the set of scopes) is converted, and a dependency graph for the associated package manager is created. During this transformation, scope excludes are applied, so that the result contains only dependencies from included scopes.

    Via this converter, optimized results can be generated for package managers that do not yet support this format. This approach is, however, not ideal, because during the conversion both the dependency tree and the dependency graph need to be hold in memory. So this is rather a temporary solution until all package managers support the new format natively.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final AnalyzerResult convert(AnalyzerResult result, Excludes excludes) Convert the given result, so that all dependencies are represented as dependency graphs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • convert

         final AnalyzerResult convert(AnalyzerResult result, Excludes excludes)

        Convert the given result, so that all dependencies are represented as dependency graphs. During conversion, apply the scope excludes defined in excludes. If the result already contains a dependency graph that covers all projects, it is returned as is.