ClassLoader Constructors

Definition

Overloads

ClassLoader()

Creates a new class loader using the ClassLoader returned by the method #getSystemClassLoader() <tt>getSystemClassLoader()</tt> as the parent class loader.

ClassLoader(ClassLoader)

Creates a new class loader using the specified parent class loader for delegation.

ClassLoader(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ClassLoader()

Creates a new class loader using the ClassLoader returned by the method #getSystemClassLoader() <tt>getSystemClassLoader()</tt> as the parent class loader.

[Android.Runtime.Register(".ctor", "()V", "")]
protected ClassLoader ();
Attributes

Remarks

Creates a new class loader using the ClassLoader returned by the method #getSystemClassLoader() <tt>getSystemClassLoader()</tt> as the parent class loader.

If there is a security manager, its SecurityManager#checkCreateClassLoader() <tt>checkCreateClassLoader</tt> method is invoked. This may result in a security exception.

Java documentation for java.lang.ClassLoader.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

ClassLoader(ClassLoader)

Creates a new class loader using the specified parent class loader for delegation.

[Android.Runtime.Register(".ctor", "(Ljava/lang/ClassLoader;)V", "")]
protected ClassLoader (Java.Lang.ClassLoader? parent);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/ClassLoader;)V", "")>]
new Java.Lang.ClassLoader : Java.Lang.ClassLoader -> Java.Lang.ClassLoader

Parameters

parent
ClassLoader

The parent class loader

Attributes

Remarks

Creates a new class loader using the specified parent class loader for delegation.

If there is a security manager, its SecurityManager#checkCreateClassLoader() <tt>checkCreateClassLoader</tt> method is invoked. This may result in a security exception.

Added in 1.2.

Java documentation for java.lang.ClassLoader.ClassLoader(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

ClassLoader(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected ClassLoader (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.ClassLoader : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.ClassLoader

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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