Class MuzzleCodeGenerationPlugin
- java.lang.Object
-
- io.opentelemetry.javaagent.tooling.muzzle.generation.MuzzleCodeGenerationPlugin
-
- All Implemented Interfaces:
Closeable,AutoCloseable,net.bytebuddy.build.Plugin,net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>
public final class MuzzleCodeGenerationPlugin extends Object implements net.bytebuddy.build.Plugin
This class is a ByteBuddy build plugin that is responsible for generating actual implementation of someInstrumentationModulemethods. Auto-generated methods have the word "muzzle" in their names.This class is used in the gradle build scripts, referenced by each instrumentation module.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
net.bytebuddy.matcher.ElementMatcher.Junction<S extends Object>
-
-
Constructor Summary
Constructors Constructor Description MuzzleCodeGenerationPlugin(URLClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.bytebuddy.dynamic.DynamicType.Builder<?>apply(net.bytebuddy.dynamic.DynamicType.Builder<?> builder, net.bytebuddy.description.type.TypeDescription typeDescription, net.bytebuddy.dynamic.ClassFileLocator classFileLocator)voidclose()booleanmatches(net.bytebuddy.description.type.TypeDescription target)
-
-
-
Constructor Detail
-
MuzzleCodeGenerationPlugin
public MuzzleCodeGenerationPlugin(URLClassLoader classLoader)
-
-
Method Detail
-
matches
public boolean matches(net.bytebuddy.description.type.TypeDescription target)
- Specified by:
matchesin interfacenet.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>
-
apply
public net.bytebuddy.dynamic.DynamicType.Builder<?> apply(net.bytebuddy.dynamic.DynamicType.Builder<?> builder, net.bytebuddy.description.type.TypeDescription typeDescription, net.bytebuddy.dynamic.ClassFileLocator classFileLocator)- Specified by:
applyin interfacenet.bytebuddy.build.Plugin
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-