Interface BytecodeProvider


public interface BytecodeProvider
Allows class processors to access bytecode of classes other than the class that is currently being transformed.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    getByteCode(String className)
    Gets the bytecode for a given class.
  • Method Details

    • getByteCode

      byte[] getByteCode(String className) throws ClassNotFoundException
      Gets the bytecode for a given class. This bytecode is provided in the form that the processor would see, were it transforming that class; any transformers ordered before will have been applied to it already.
      Parameters:
      className - the class to locate, in dot-separated form
      Returns:
      the bytecode
      Throws:
      ClassNotFoundException - if the class cannot be found