SystemClassLoader
class in package klyn

    public class SystemClassLoader extends ClassLoader:

ClassLoader
└ SystemClassLoader

Default runtime loader.

`SystemClassLoader` resolves classes from the active Klyn class path and is exposed as a singleton for application code that needs explicit reflective loading.

    loader = SystemClassLoader.instance
    stringType = loader.loadClass("klyn.String")
    assert stringType.fullName == "klyn.String"

Properties

Modifier and Type | Member | Description
--- | --- | ---
public static readonly property | instance `instance as SystemClassLoader:` | Shared system class loader instance.

Properties inherited from ClassLoader: system
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SystemClassLoader `SystemClassLoader():` | Creates a system class loader.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public native override | loadClass `loadClass(name as String) as Type` | Loads a class by its fully-qualified or resolvable name.
public native override | loadPackage `loadPackage(name as String) as Void` | Loads all visible classes from a package.

Methods inherited from ClassLoader: forName, getSystem, getTypeByName, loadClass, loadPackage