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