net.sf.staccatocommons.instrument
Class InstrumentationRunner

java.lang.Object
  extended by net.sf.staccatocommons.instrument.InstrumentationRunner

public final class InstrumentationRunner
extends Object

Instrumentation API entry point.

Author:
flbulgarelli
See Also:
runInstrumentation(InstrumenterConfigurer, Directory, String)

Method Summary
static void runInstrumentation(InstrumenterConfigurer configurer, Directory processDirectory, String extraPath)
          Instruments the given directory, reading each .class file, processing it, and writing it back to the filesystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

runInstrumentation

public static void runInstrumentation(@NonNull
                                      InstrumenterConfigurer configurer,
                                      @NonNull
                                      Directory processDirectory,
                                      @NonNull
                                      String extraPath)
                               throws Exception
Instruments the given directory, reading each .class file, processing it, and writing it back to the filesystem

Parameters:
configurer - an InstrumenterConfigurer that will setup the actual Instrumenter that will be used to process the directory
processDirectory - the directory with .class files to process
extraPath - a string containing a list of additional paths to add to the classpath used on instrumentation. This string is system-dependent, using the platform separator and directory separator
Throws:
Exception
See Also:
File.pathSeparator, File.separator


Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.