Class InstrumentationSupport


  • class InstrumentationSupport
    extends java.lang.Object
    Instrumentation API support.
    • Field Detail

      • INSTRUMENTATION

        private static java.lang.instrument.Instrumentation INSTRUMENTATION
      • TRY_INSTALL_ATTACH

        private static boolean TRY_INSTALL_ATTACH
      • TRY_DYNAMIC_ATTACH

        private static boolean TRY_DYNAMIC_ATTACH
    • Constructor Detail

      • InstrumentationSupport

        InstrumentationSupport()
    • Method Detail

      • premain

        public static void premain​(java.lang.String agentArgs,
                                   java.lang.instrument.Instrumentation inst)
      • instance

        static java.lang.instrument.Instrumentation instance()
      • tryAlreadyAttached

        private static void tryAlreadyAttached()
      • tryDynamicAttach

        private static void tryDynamicAttach()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • saveAgentJar

        private static void saveAgentJar​(java.io.File agentFile)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception