Class RuntimeHook

java.lang.Object
net.uptheinter.interceptify.internal.RuntimeHook

public final class RuntimeHook extends Object
This is the primary point at which intercepting logic kicks off. The class doesn't do all that much now but exists for the purposes of facilitating Java Agent functionality in the future. As should be obvious from the package name, this class is internal. Use EntryPoint for your needs. This class is not subject to semantic versioning rules as you shouldn't be using it.
  • Method Details

    • init

      public static void init(StartupConfig cfg)
      This function kicks everything off, but you should use EntryPoint - this class may be changed arbitrarily in future releases.
      Parameters:
      cfg - an implementation of a StartupConfig
    • premain

      public static void premain(String args, Instrumentation instr)
      This function should be called by the JVM, however, you could also ostensibly call it from your own Java Agent - though since multiple Java Agents can be registered, such a scenario is unsupported.
      Parameters:
      args - arguments from the JVM
      instr - an Instrumentation instance.