Interface ClassBytecodeProcessor


public interface ClassBytecodeProcessor
A bytecode processor callback that is used by JavaRebel to process class bytecode before loading the class.
Since:
1.2
Author:
Jevgeni Kabanov
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Returns the priority of the processor that defines the order of processor invocation.
    byte[]
    process(ClassLoader cl, String classname, byte[] bytecode)
     
  • Method Details

    • process

      byte[] process(ClassLoader cl, String classname, byte[] bytecode)
      Parameters:
      cl - the ClassLoader the class will be loaded in
      classname - the name of the class to be defined
      bytecode - original bytecode
      Returns:
      modified or unmodified bytecode.
    • priority

      default int priority()
      Returns the priority of the processor that defines the order of processor invocation. First run the processor with greatest priority value. Negative values are the latest.
      Returns:
      the priority of the processor
      Since:
      2018.2.5