org.alfresco.util
Class ContextDependencyLister

java.lang.Object
  extended by 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.


Nested Class Summary
static class ContextDependencyLister.BeanTrackingApplicationContext
           
static class ContextDependencyLister.BeanTrackingListener
           
 
Field Summary
static java.lang.String[] DEFAULT_CONFIG_LOCATIONS
           
 
Constructor Summary
ContextDependencyLister()
           
ContextDependencyLister(java.lang.String[] configLocations)
           
 
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
 

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 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.