public class JavassistInstrumenter extends AbstractInstrumenter
AbstractInstrumenter.CustomFieldFilterInstrumenter.Optionslogger, options| Constructor and Description |
|---|
JavassistInstrumenter(Logger logger,
Instrumenter.Options options)
Constructs the Javassist-based instrumenter.
|
| Modifier and Type | Method and Description |
|---|---|
protected ClassDescriptor |
getClassDescriptor(byte[] bytecode)
Given the bytecode of a java class, retrieve the descriptor for that class.
|
protected ClassTransformer |
getClassTransformer(ClassDescriptor descriptor,
Set classNames)
Create class transformer for the class.
|
checkMagic, execute, isClassFile, isJarFile, processClassFile, processFile, processJarFilepublic JavassistInstrumenter(Logger logger, Instrumenter.Options options)
logger - Logger to useoptions - Instrumentation optionsprotected ClassDescriptor getClassDescriptor(byte[] bytecode) throws IOException
AbstractInstrumentergetClassDescriptor in class AbstractInstrumenterbytecode - The class bytecode.IOExceptionprotected ClassTransformer getClassTransformer(ClassDescriptor descriptor, Set classNames)
AbstractInstrumentergetClassTransformer in class AbstractInstrumenterdescriptor - The descriptor of the class to be instrumented.classNames - The names of all classes to be instrumented; the "pipeline" if you will.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.