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.
    default byte[]
    process(ClassLoader cl, String classname, byte[] bytecode)
     
    default byte[]
    process(Object module, ClassLoader cl, String classname, byte[] bytecode)
     
  • Method Details

    • process

      default 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.
    • process

      default byte[] process(Object module, ClassLoader cl, String classname, byte[] bytecode)
      Parameters:
      module - the Module the class will be loaded in
      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