net.sf.staccatocommons.instrument
Class InstrumentationRunner
java.lang.Object
net.sf.staccatocommons.instrument.InstrumentationRunner
public final class InstrumentationRunner
- extends Object
Instrumentation API entry point.
- Author:
- flbulgarelli
- See Also:
runInstrumentation(InstrumenterConfigurer, Directory, String)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 directoryprocessDirectory - the directory with .class files to processextraPath - 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.