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 Type
    Method
    Description
    void
    applyAdviceToMethod(net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> methodMatcher, String adviceClassName)
    Apply the advice class named adviceClassName to the instrumented type methods that match methodMatcher.
    void
    applyTransformer(net.bytebuddy.agent.builder.AgentBuilder.Transformer transformer)
    Apply a custom ByteBuddy AgentBuilder.Transformer to 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 named adviceClassName to the instrumented type methods that match methodMatcher.
    • applyTransformer

      void applyTransformer(net.bytebuddy.agent.builder.AgentBuilder.Transformer transformer)
      Apply a custom ByteBuddy AgentBuilder.Transformer to the instrumented type. Note that since this is a completely custom transformer, muzzle won't be able to scan for references or helper classes.