Interface TypeTransformer
public interface TypeTransformer
This interface represents type transformations that can be applied to a type instrumented using
TypeInstrumentation.
This interface should not be implemented by the javaagent extension developer - the javaagent will provide the implementation of all transformations described here.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAdviceToMethod(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 Details
-
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.
-