URLClassLoader.NewInstance Method

Definition

Overloads

NewInstance(URL[])

Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.

NewInstance(URL[], ClassLoader)

Creates a new instance of URLClassLoader for the specified URLs and parent class loader.

NewInstance(URL[])

Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.

[Android.Runtime.Register("newInstance", "([Ljava/net/URL;)Ljava/net/URLClassLoader;", "")]
public static Java.Net.URLClassLoader? NewInstance (Java.Net.URL[]? urls);
[<Android.Runtime.Register("newInstance", "([Ljava/net/URL;)Ljava/net/URLClassLoader;", "")>]
static member NewInstance : Java.Net.URL[] -> Java.Net.URLClassLoader

Parameters

urls
URL[]

the URLs to search for classes and resources

Returns

the resulting class loader

Attributes

Remarks

Creates a new instance of URLClassLoader for the specified URLs and default parent class loader. If a security manager is installed, the loadClass method of the URLClassLoader returned by this method will invoke the SecurityManager.checkPackageAccess before loading the class.

Java documentation for java.net.URLClassLoader.newInstance(java.net.URL[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

NewInstance(URL[], ClassLoader)

Creates a new instance of URLClassLoader for the specified URLs and parent class loader.

[Android.Runtime.Register("newInstance", "([Ljava/net/URL;Ljava/lang/ClassLoader;)Ljava/net/URLClassLoader;", "")]
public static Java.Net.URLClassLoader? NewInstance (Java.Net.URL[]? urls, Java.Lang.ClassLoader? parent);
[<Android.Runtime.Register("newInstance", "([Ljava/net/URL;Ljava/lang/ClassLoader;)Ljava/net/URLClassLoader;", "")>]
static member NewInstance : Java.Net.URL[] * Java.Lang.ClassLoader -> Java.Net.URLClassLoader

Parameters

urls
URL[]

the URLs to search for classes and resources

parent
ClassLoader

the parent class loader for delegation

Returns

the resulting class loader

Attributes

Remarks

Creates a new instance of URLClassLoader for the specified URLs and parent class loader. If a security manager is installed, the loadClass method of the URLClassLoader returned by this method will invoke the SecurityManager.checkPackageAccess method before loading the class.

Java documentation for java.net.URLClassLoader.newInstance(java.net.URL[], java.lang.ClassLoader).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to