Package com.jetbrains

Interface Hotswap.Listener

Enclosing interface:
Hotswap

@Provides public static interface Hotswap.Listener
Defines a listener interface to handle notifications when one or more classes are successfully redefined or retransformed during the runtime.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called by the runtime after one or more classes have been successfully redefined or retransformed.
  • Method Details

    • onClassesRedefined

      void onClassesRedefined()
      Called by the runtime after one or more classes have been successfully redefined or retransformed. Thread model: - Invoked on the Java thread that initiated the corresponding JVMTI RedefineClasses or RetransformClasses call (never on VMThread and never while the VM is at a safepoint). Restrictions: - Must return quickly and avoid long blocking operations. - Must NOT trigger another class redefinition or retransformation. - Any exception thrown by this method is ignored by the runtime.