Class ClassLoaderMatcher
- java.lang.Object
-
- io.opentelemetry.javaagent.tooling.muzzle.ClassLoaderMatcher
-
public class ClassLoaderMatcher extends Object
This class verifies that a givenClassLoadersatisfies all expectations of a givenInstrumentationModule. It is used to make sure than a module's transformations can be safely applied to a given class loader.- See Also:
InstrumentationModule,ReferenceMatcher
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,List<Mismatch>>matchesAll(ClassLoader classLoader, boolean injectHelpers)For allInstrumentationModules found in the current thread's context classloader callsmatches(InstrumentationModule, ClassLoader, boolean)and returns the aggregated result.
-
-
-
Method Detail
-
matchesAll
public static Map<String,List<Mismatch>> matchesAll(ClassLoader classLoader, boolean injectHelpers)
For allInstrumentationModules found in the current thread's context classloader callsmatches(InstrumentationModule, ClassLoader, boolean)and returns the aggregated result.The returned map will be empty if and only if no instrumentation modules were found.
-
-