Class ClassFileLocator.Compound

java.lang.Object
net.bytebuddy.dynamic.ClassFileLocator.Compound
All Implemented Interfaces:
Closeable, AutoCloseable, ClassFileLocator
Enclosing interface:
ClassFileLocator

@Enhance public static class ClassFileLocator.Compound extends Object implements ClassFileLocator, Closeable
A compound ClassFileLocator that chains several locators. Any class file locator is queried in the supplied order until one locator is able to provide an input stream of the class file.
  • Field Details

    • classFileLocators

      private final List<ClassFileLocator> classFileLocators
      The ClassFileLocators which are represented by this compound class file locator in the order of their application.
  • Constructor Details

    • Compound

      public Compound(ClassFileLocator... classFileLocator)
      Creates a new compound class file locator.
      Parameters:
      classFileLocator - The ClassFileLocators to be represented by this compound class file locator in the order of their application.
    • Compound

      public Compound(List<? extends ClassFileLocator> classFileLocators)
      Creates a new compound class file locator.
      Parameters:
      classFileLocators - The ClassFileLocators to be represented by this compound class file locator in the order of their application.
  • Method Details