Class JvmClasspathAgent


  • public class JvmClasspathAgent
    extends java.lang.Object
    Java agent to add jar to classpath at runtime
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.instrument.Instrumentation instrumentation  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void agentmain​(java.lang.String args, java.lang.instrument.Instrumentation instrumentation)  
      static void appendJarFile​(java.util.jar.JarFile file)  
      static void premain​(java.lang.String args, java.lang.instrument.Instrumentation instrumentation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • instrumentation

        public static java.lang.instrument.Instrumentation instrumentation
    • Constructor Detail

      • JvmClasspathAgent

        public JvmClasspathAgent()
    • Method Detail

      • premain

        public static void premain​(java.lang.String args,
                                   java.lang.instrument.Instrumentation instrumentation)
      • agentmain

        public static void agentmain​(java.lang.String args,
                                     java.lang.instrument.Instrumentation instrumentation)
      • appendJarFile

        public static void appendJarFile​(java.util.jar.JarFile file)
                                  throws java.io.IOException
        Throws:
        java.io.IOException