Package net.bytebuddy.agent.builder
Interface AgentBuilder.Default.WarmupStrategy.Enabled.Dispatcher
-
- Enclosing class:
- AgentBuilder.Default.WarmupStrategy.Enabled
@Proxied("java.lang.instrument.ClassFileTransformer") protected static interface AgentBuilder.Default.WarmupStrategy.Enabled.Dispatcher
A dispatcher to interact with aClassFileTransformerwhen the module system is active.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]transform(java.lang.instrument.ClassFileTransformer target, java.lang.Object module, java.lang.ClassLoader classLoader, java.lang.String name, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)Transforms a class.
-
-
-
Method Detail
-
transform
@MaybeNull byte[] transform(java.lang.instrument.ClassFileTransformer target, @MaybeNull @Proxied("java.lang.Module") java.lang.Object module, @MaybeNull java.lang.ClassLoader classLoader, java.lang.String name, @MaybeNull java.lang.Class<?> classBeingRedefined, @MaybeNull java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation) throws java.lang.instrument.IllegalClassFormatException
Transforms a class.- Parameters:
target- The transformer to use for transformation.module- The Java module of the transformed class.classLoader- The class loader of the transformed class ornullif loaded by the boot loader.name- The internal name of the transformed class.classBeingRedefined- The class being redefined ornullif not a retransformation.protectionDomain- The class's protection domain ornullif not available.binaryRepresentation- The class's binary representation.- Returns:
- The transformed class file or
nullif untransformed. - Throws:
java.lang.instrument.IllegalClassFormatException- If the class file cannot be generated.
-
-