Class ContextDependencyLister


  • public class ContextDependencyLister
    extends java.lang.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 Detail

      • DEFAULT_CONFIG_LOCATIONS

        public static final java.lang.String[] DEFAULT_CONFIG_LOCATIONS
    • Constructor Detail

      • ContextDependencyLister

        public ContextDependencyLister​(java.lang.String[] configLocations)
      • ContextDependencyLister

        public ContextDependencyLister()
    • Method Detail

      • main

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

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

        public void graphVizDependencies​(java.lang.String outFile)
                                  throws java.io.FileNotFoundException
        Renders the dependencies as GraphViz DotXML
        Throws:
        java.io.FileNotFoundException