Class ClassFileLocator.ForUrl

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

@Enhance public static class ClassFileLocator.ForUrl extends Object implements ClassFileLocator
A class file locator that reads class files from one or several URLs. The reading is accomplished via using an URLClassLoader. Doing so, boot loader resources might be located additionally to those found via the specified URLs.
  • Constructor Details

    • ForUrl

      public ForUrl(URL... url)
      Creates a new class file locator for the given URLs.
      Parameters:
      url - The URLs to search for class files.
    • ForUrl

      public ForUrl(Collection<? extends URL> urls)
      Creates a new class file locator for the given URLs.
      Parameters:
      urls - The URLs to search for class files.
  • Method Details