Class Plugin.Engine.Default.SourceEntryPrependingClassFileLocator

java.lang.Object
net.bytebuddy.build.Plugin.Engine.Default.SourceEntryPrependingClassFileLocator
All Implemented Interfaces:
Closeable, AutoCloseable, ClassFileLocator
Enclosing class:
Plugin.Engine.Default

@Enhance protected static class Plugin.Engine.Default.SourceEntryPrependingClassFileLocator extends Object implements ClassFileLocator
A class file locator that shadows a given Plugin.Engine.Source.Element's type with the explicit element. This avoids that caching yields the wrong class file in case of multi-release jars.
  • Field Details

    • name

      private final String name
      The name of the represented type.
    • element

      private final Plugin.Engine.Source.Element element
      The corresponding source element.
    • delegate

      private final ClassFileLocator delegate
      The actual class file locator to query for all other types.
  • Constructor Details

    • SourceEntryPrependingClassFileLocator

      protected SourceEntryPrependingClassFileLocator(String name, Plugin.Engine.Source.Element element, ClassFileLocator delegate)
      Creates a class file locator that prepends a Plugin.Engine.Source.Element.
      Parameters:
      name - The name of the represented type.
      element - The corresponding source element.
      delegate - The actual class file locator to query for all other types.
  • Method Details