public URLClassLoader (URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)

Constructs a new URLClassLoader for the specified URLs, parent class loader, and URLStreamHandlerFactory. The parent argument will be used as the parent class loader for delegation. The factory argument will be used as the stream handler factory to obtain protocol handlers when creating new jar URLs.

If there is a security manager, this method first calls the security manager's checkCreateClassLoader method to ensure creation of a class loader is allowed.

Parameters:
urls    the URLs from which to load classes and resources
parent    the parent class loader for delegation
factory    the URLStreamHandlerFactory to use when creating URLs

Exceptions:
SecurityException    if a security manager exists and its checkCreateClassLoader method doesn't allow creation of a class loader.
NullPointerException    if urls is null.

See also:
SecurityManager.checkCreateClassLoader