Interface IHotSwap


public interface IHotSwap
Interface to allow the hot-swap agent to be loaded on-demand
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Registers a mixin class with the agent.
    void
    registerTargetClass(String name, org.objectweb.asm.tree.ClassNode classNode)
    Registers a class targeted by at least one mixin.
  • Method Details

    • registerMixinClass

      void registerMixinClass(String name)
      Registers a mixin class with the agent.

      This is needed as the mixin needs to be loaded to be redefined.

      Parameters:
      name - Fully qualified name of the mixin class
    • registerTargetClass

      void registerTargetClass(String name, org.objectweb.asm.tree.ClassNode classNode)
      Registers a class targeted by at least one mixin.

      This is used to rollback the target class to a state before the mixins were applied.

      Parameters:
      name - Name of the class
      classNode - ASM tree of the class before mixins have been applied