java.lang.Object
org.bzdev.net.URLClassLoaderOps
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 ClassesModifier and TypeClassDescriptionstatic class
Deprecated.This permission is no longer necessary. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
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
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
close()
Deprecated.Prevent new URLs from being added to the class loader.static boolean
isClosed()
Deprecated.Determine if the URLCLassLoaderOps service has been closed.
-
Constructor Details
-
URLClassLoaderOps
public URLClassLoaderOps()Deprecated.
-
-
Method Details
-
addURL
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
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
-