Interface TypeTransformer
-
public interface TypeTransformerThis interface represents type transformations that can be applied to a type instrumented usingTypeInstrumentation.This interface should not be implemented by the javaagent extension developer - the javaagent will provide the implementation of all transformations described here.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyAdviceToMethod(net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> methodMatcher, String adviceClassName)Apply the advice class namedadviceClassNameto the instrumented type methods that matchmethodMatcher.voidapplyTransformer(net.bytebuddy.agent.builder.AgentBuilder.Transformer transformer)Apply a custom ByteBuddyAgentBuilder.Transformerto the instrumented type.
-
-
-
Method Detail
-
applyAdviceToMethod
void applyAdviceToMethod(net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> methodMatcher, String adviceClassName)Apply the advice class namedadviceClassNameto the instrumented type methods that matchmethodMatcher.
-
applyTransformer
void applyTransformer(net.bytebuddy.agent.builder.AgentBuilder.Transformer transformer)
Apply a custom ByteBuddyAgentBuilder.Transformerto the instrumented type. Note that since this is a completely custom transformer, muzzle won't be able to scan for references or helper classes.
-
-