Class HelperResources
- java.lang.Object
-
- io.opentelemetry.javaagent.bootstrap.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URLload(ClassLoader classLoader, String path)Returns aURLthat can be used to retrieve the content of the resource atpath, ornullif no resource could be found atpath.static voidregister(ClassLoader classLoader, String path, URL url)Registers thepayloadto be available to instrumentation atpath.
-
-
-
Method Detail
-
register
public static void register(ClassLoader classLoader, String path, URL url)
Registers thepayloadto be available to instrumentation atpath.
-
load
public static URL load(ClassLoader classLoader, String path)
Returns aURLthat can be used to retrieve the content of the resource atpath, ornullif no resource could be found atpath.
-
-