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 URL
load(ClassLoader classLoader, String path)
Returns aURL
that can be used to retrieve the content of the resource atpath
, ornull
if no resource could be found atpath
.static void
register(ClassLoader classLoader, String path, URL url)
Registers thepayload
to be available to instrumentation atpath
.
-
-
-
Method Detail
-
register
public static void register(ClassLoader classLoader, String path, URL url)
Registers thepayload
to be available to instrumentation atpath
.
-
load
public static URL load(ClassLoader classLoader, String path)
Returns aURL
that can be used to retrieve the content of the resource atpath
, ornull
if no resource could be found atpath
.
-
-