Package org.alfresco.util
Class ContextDependencyLister
- java.lang.Object
-
- org.alfresco.util.ContextDependencyLister
-
public class ContextDependencyLister extends java.lang.ObjectHelper 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextDependencyLister.BeanTrackingApplicationContextstatic classContextDependencyLister.BeanTrackingListener
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]DEFAULT_CONFIG_LOCATIONS
-
Constructor Summary
Constructors Constructor Description ContextDependencyLister()ContextDependencyLister(java.lang.String[] configLocations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgraphVizDependencies(java.lang.String outFile)Renders the dependencies as GraphViz DotXMLstatic voidmain(java.lang.String[] args)voidprintDependencies(boolean beanLevel)Prints out the dependencies in text format
-
-
-
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.FileNotFoundExceptionRenders the dependencies as GraphViz DotXML- Throws:
java.io.FileNotFoundException
-
-