Class AgentClassLoader

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class AgentClassLoader
    extends URLClassLoader
    Classloader used to run the core agent.

    It is built around the concept of a jar inside another jar. This classloader loads the files of the internal jar to load classes and resources.

    • Constructor Detail

      • AgentClassLoader

        public AgentClassLoader​(URL bootstrapJarLocation,
                                String internalJarFileName,
                                ClassLoader parent)
        Construct a new AgentClassLoader.
        Parameters:
        bootstrapJarLocation - Used for resource lookups.
        internalJarFileName - File name of the internal jar
        parent - Classloader parent. Should null (bootstrap), or the platform classloader for java 9+.