Package net.bytebuddy.dynamic.loading
Interface ClassFilePostProcessor
-
- All Known Implementing Classes:
ClassFilePostProcessor.ForClassFileTransformer
,ClassFilePostProcessor.NoOp
public interface ClassFilePostProcessor
A post processor for class files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ClassFilePostProcessor.ForClassFileTransformer
A class file post processor that delegates to anClassFileTransformer
.static class
ClassFilePostProcessor.NoOp
A non-operation class file post processor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
transform(java.lang.ClassLoader classLoader, java.lang.String name, java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)
Transforms a class file for a given class.
-
-
-
Method Detail
-
transform
byte[] transform(@MaybeNull java.lang.ClassLoader classLoader, java.lang.String name, @MaybeNull java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)
Transforms a class file for a given class.- Parameters:
classLoader
- The class loader which is used to load a class ornull
if loaded by the bootstrap loader.name
- The binary name of the transformed class.protectionDomain
- The protection domain of the transformed class ornull
if no protection domain is provided.binaryRepresentation
- The binary representation of the class file.- Returns:
- The class file to use.
-
-