Class PreMain

java.lang.Object
org.jacoco.agent.rt.internal.PreMain

public final class PreMain extends Object
The agent which is referred as the Premain-Class. The agent configuration is provided with the agent parameters in the command line.
  • Constructor Details

    • PreMain

      private PreMain()
  • Method Details

    • premain

      public static void premain(String options, Instrumentation inst) throws Exception
      This method is called by the JVM to initialize Java agents.
      Parameters:
      options - agent options
      inst - instrumentation callback provided by the JVM
      Throws:
      Exception - in case initialization fails
    • createRuntime

      private static IRuntime createRuntime(Instrumentation inst) throws Exception
      Throws:
      Exception