Package org.bzdev.net

Class URLClassLoaderOps

java.lang.Object
org.bzdev.net.URLClassLoaderOps

@Deprecated public class URLClassLoaderOps extends Object
Deprecated.
A change in Java 9, 10, and 11 prevents this class from working as it should. It was used by scrunner and lsnof and those were changed so that this class is no longer used.
Allow additional classes to be added to a URLClassLoader used by the system class loader.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated.
    This permission is no longer necessary.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addURL(URL url)
    Deprecated.
    Add a URL to the system class loader or one of its parents The class loader that will be modified is an instance of URLClassLoader, and is found by iterating over parent class loaders until the first one that is an instance of URLClassLoader is found.
    static void
    addURLs(URL[] urls)
    Deprecated.
    Add multiple URLs to the system class loader or one of its parents The class loader that will be modified is an instance of URLClassLoader, and is found by iterating over parent class loaders until the first one that is an instance of URLClassLoader is found.
    static void
    Deprecated.
    Prevent new URLs from being added to the class loader.
    static boolean
    Deprecated.
    Determine if the URLCLassLoaderOps service has been closed.

    Methods inherited from class java.lang.Object

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

    • URLClassLoaderOps

      public URLClassLoaderOps()
      Deprecated.
  • Method Details

    • addURL

      public static void addURL(URL url)
      Deprecated.
      Add a URL to the system class loader or one of its parents The class loader that will be modified is an instance of URLClassLoader, and is found by iterating over parent class loaders until the first one that is an instance of URLClassLoader is found.
      Parameters:
      url - the URL to add
    • addURLs

      public static void addURLs(URL[] urls)
      Deprecated.
      Add multiple URLs to the system class loader or one of its parents The class loader that will be modified is an instance of URLClassLoader, and is found by iterating over parent class loaders until the first one that is an instance of URLClassLoader is found.
      Parameters:
      urls - the URLs to add
    • close

      public static void close()
      Deprecated.
      Prevent new URLs from being added to the class loader.
    • isClosed

      public static boolean isClosed()
      Deprecated.
      Determine if the URLCLassLoaderOps service has been closed. A state of "closed" indicates that additional URLs cannot be added.
      Returns:
      true if closed; false otherwise