org.alfresco.util
Class ContextDependencyLister
java.lang.Object
org.alfresco.util.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.
Method Summary |
void |
graphVizDependencies(java.lang.String outFile)
Renders the dependencies as GraphViz DotXML |
static void |
main(java.lang.String[] args)
|
void |
printDependencies(boolean beanLevel)
Prints out the dependencies in text format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONFIG_LOCATIONS
public static final java.lang.String[] DEFAULT_CONFIG_LOCATIONS
ContextDependencyLister
public ContextDependencyLister(java.lang.String[] configLocations)
ContextDependencyLister
public ContextDependencyLister()
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 com.sun.star.io.IOException,
java.io.FileNotFoundException
- Renders the dependencies as GraphViz DotXML
- Throws:
com.sun.star.io.IOException
java.io.FileNotFoundException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.