Class HelperResources
java.lang.Object
io.opentelemetry.javaagent.bootstrap.HelperResources
A holder of resources needed by instrumentation. We store them in the bootstrap class loader so
instrumentation can store from the agent class loader and apps can retrieve from the app class
loader.
-
Method Summary
Modifier and TypeMethodDescriptionloadAll
(ClassLoader classLoader, String path) Returns allURL
s that can be used to retrieve the content of the resource atpath
.static URL
loadOne
(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, List<URL> urls) Registers theurls
to be available to instrumentation atpath
, when givenclassLoader
attempts to load that resource.static void
registerForAllClassLoaders
(String path, List<URL> urls) Registers theurls
to be available to instrumentation atpath
.
-
Method Details
-
register
Registers theurls
to be available to instrumentation atpath
, when givenclassLoader
attempts to load that resource. -
registerForAllClassLoaders
Registers theurls
to be available to instrumentation atpath
. -
loadOne
Returns aURL
that can be used to retrieve the content of the resource atpath
, ornull
if no resource could be found atpath
. -
loadAll
Returns allURL
s that can be used to retrieve the content of the resource atpath
.
-