T
- The type of the value that is passed between the callback methods.@HashCodeAndEqualsPlugin.Enhance protected static class ResettableClassFileTransformer.WithDelegation.WithCallback<T> extends ResettableClassFileTransformer.WithDelegation
ResettableClassFileTransformer.WithDelegation.Callback<T>, ResettableClassFileTransformer.WithDelegation.Substitutable, ResettableClassFileTransformer.WithDelegation.WithCallback<T>
ResettableClassFileTransformer.AbstractBase, ResettableClassFileTransformer.WithDelegation
classFileTransformer
Modifier | Constructor and Description |
---|---|
protected |
WithCallback(ResettableClassFileTransformer classFileTransformer,
ResettableClassFileTransformer.WithDelegation.Callback<T> callback)
Creates a delegating class file transformer with callback.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
doTransform(Object rawModule,
ClassLoader classLoader,
String internalName,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] binaryRepresentation)
Callback between the transformation callbacks.
|
byte[] |
transform(ClassLoader classLoader,
String internalName,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] binaryRepresentation) |
protected byte[] |
transform(Object rawModule,
ClassLoader classLoader,
String internalName,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] binaryRepresentation)
A method to delegate to when the module system is supported on the current JVM.
|
iterator, of, reset
protected WithCallback(ResettableClassFileTransformer classFileTransformer, ResettableClassFileTransformer.WithDelegation.Callback<T> callback)
classFileTransformer
- The class file transformer to delegate to.callback
- The callback to invoke.@MaybeNull public byte[] transform(@MaybeNull ClassLoader classLoader, @MaybeNull String internalName, @MaybeNull Class<?> classBeingRedefined, @MaybeNull ProtectionDomain protectionDomain, byte[] binaryRepresentation) throws IllegalClassFormatException
IllegalClassFormatException
@MaybeNull protected byte[] transform(Object rawModule, @MaybeNull ClassLoader classLoader, @MaybeNull String internalName, @MaybeNull Class<?> classBeingRedefined, @MaybeNull ProtectionDomain protectionDomain, byte[] binaryRepresentation) throws IllegalClassFormatException
rawModule
- The instrumented class's java.lang.Module
.classLoader
- The type's class loader or null
if the type is loaded by the bootstrap loader.internalName
- The internal name of the instrumented class.classBeingRedefined
- The loaded Class
being redefined or null
if no such class exists.protectionDomain
- The instrumented type's protection domain or null
if not available.binaryRepresentation
- The class file of the instrumented class in its current state.null
if no transformation should be applied.IllegalClassFormatException
- If the class file was found invalid.@MaybeNull protected byte[] doTransform(Object rawModule, @MaybeNull ClassLoader classLoader, @MaybeNull String internalName, @MaybeNull Class<?> classBeingRedefined, @MaybeNull ProtectionDomain protectionDomain, byte[] binaryRepresentation) throws IllegalClassFormatException
rawModule
- The instrumented class's java.lang.Module
.classLoader
- The type's class loader or null
if the type is loaded by the bootstrap loader.internalName
- The internal name of the instrumented class.classBeingRedefined
- The loaded Class
being redefined or null
if no such class exists.protectionDomain
- The instrumented type's protection domain or null
if not available.binaryRepresentation
- The class file of the instrumented class in its current state.null
if no transformation should be applied.IllegalClassFormatException
- If the class file was found invalid.Copyright © 2014–2025. All rights reserved.