Class ClasspathByteBuddyPlugin

java.lang.Object
com.vaadin.extension.ClasspathByteBuddyPlugin
All Implemented Interfaces:
Closeable, AutoCloseable, net.bytebuddy.build.Plugin, net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>

public class ClasspathByteBuddyPlugin extends Object implements net.bytebuddy.build.Plugin
Wrapper for OpenTelemetry MuzzleCodeGenerationPlugin to provide the current URLClassLoader and instrument the instrumentation module.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher

    net.bytebuddy.matcher.ElementMatcher.Junction<S extends Object>

    Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin

    net.bytebuddy.build.Plugin.Engine, net.bytebuddy.build.Plugin.Factory, net.bytebuddy.build.Plugin.ForElementMatcher, net.bytebuddy.build.Plugin.NoOp, net.bytebuddy.build.Plugin.WithInitialization, net.bytebuddy.build.Plugin.WithPreprocessor
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the plugin instance.
  • Method Summary

    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)
     
    void
     
    boolean
    matches(net.bytebuddy.description.type.TypeDescription target)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClasspathByteBuddyPlugin

      public ClasspathByteBuddyPlugin()
      Creates the plugin instance.
  • Method Details

    • matches

      public boolean matches(net.bytebuddy.description.type.TypeDescription target)
      Specified by:
      matches in interface net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • 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:
      apply in interface net.bytebuddy.build.Plugin