Class ContextDependencyLister

java.lang.Object
org.alfresco.util.ContextDependencyLister

public class ContextDependencyLister extends Object
Helper class to list the dependencies between different spring context files that make up a full or partial Application Context. Useful when trying to produce paired-down application contexts for unit testing or embedding.
Author:
Nick Burch
  • Field Details

    • DEFAULT_CONFIG_LOCATIONS

      public static final String[] DEFAULT_CONFIG_LOCATIONS
  • Constructor Details

    • ContextDependencyLister

      public ContextDependencyLister(String[] configLocations)
    • ContextDependencyLister

      public ContextDependencyLister()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • printDependencies

      public void printDependencies(boolean beanLevel)
      Prints out the dependencies in text format
    • graphVizDependencies

      public void graphVizDependencies(String outFile) throws FileNotFoundException
      Renders the dependencies as GraphViz DotXML
      Throws:
      FileNotFoundException