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