ClassLoader Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ClassLoader() |
Creates a new class loader using the |
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
- 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.