public class OriginalClassLoadTimeTransformer extends AbstractTransformer
Constructor and Description |
---|
OriginalClassLoadTimeTransformer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
instrumentableClass(java.lang.String className,
java.lang.Class<?> classBeingRedefined)
It is applicable when it is the first load of the class, the class is not a
version class and there is a source file of the class inside the src
specified folder.
|
protected byte[] |
transform(java.lang.String className,
java.lang.Class<?> classBeingRedefined,
byte[] classfileBuffer)
Adds new fields and methods to the class to support the functionality of the
library.
|
transform
protected byte[] transform(java.lang.String className, java.lang.Class<?> classBeingRedefined, byte[] classfileBuffer)
transform
in class AbstractTransformer
className
- The internal class nameclassBeingRedefined
- The Class> object or nullFclassfileBuffer
- The bytes of the classprotected boolean instrumentableClass(java.lang.String className, java.lang.Class<?> classBeingRedefined)
instrumentableClass
in class AbstractTransformer
className
- The internal class nameclassBeingRedefined
- The Class> object