Class HelperResources


  • public final class HelperResources
    extends Object
    A holder of resources needed by instrumentation. We store them in the bootstrap classloader so instrumentation can store from the agent classloader and apps can retrieve from the app classloader.
    • Method Detail

      • register

        public static void register​(ClassLoader classLoader,
                                    String path,
                                    URL url)
        Registers the payload to be available to instrumentation at path.
      • load

        public static URL load​(ClassLoader classLoader,
                               String path)
        Returns a URL that can be used to retrieve the content of the resource at path, or null if no resource could be found at path.