Class HelperResources


  • public final class HelperResources
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.net.URL load​(java.lang.ClassLoader classLoader, java.lang.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.
      static void register​(java.lang.ClassLoader classLoader, java.lang.String path, java.net.URL url)
      Registers the payload to be available to instrumentation at path.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • register

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

        public static java.net.URL load​(java.lang.ClassLoader classLoader,
                                        java.lang.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.