public interface ContextClassTransformer
ClassFileTransformer, but it takes additional arguments containing some context about the
current class transformation including the class match results paired to this transformer. These transformers are added
by calling: InstrumentationContextManager.addContextClassTransformer(ClassMatchVisitorFactory, ContextClassTransformer).| Modifier and Type | Method and Description |
|---|---|
byte[] |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] classfileBuffer,
InstrumentationContext context,
OptimizedClassMatcher.Match match) |
byte[] transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] classfileBuffer,
InstrumentationContext context,
OptimizedClassMatcher.Match match)
throws java.lang.instrument.IllegalClassFormatException
java.lang.instrument.IllegalClassFormatException