Interface IHotSwap
public interface IHotSwap
Interface to allow the hot-swap agent to be loaded on-demand
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterMixinClass(String name) Registers a mixin class with the agent.voidregisterTargetClass(String name, org.objectweb.asm.tree.ClassNode classNode) Registers a class targeted by at least one mixin.
-
Method Details
-
registerMixinClass
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
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 classclassNode- ASM tree of the class before mixins have been applied
-