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.

Inherited Properties
property Inherited Properties 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.

Inherited Methods
method Inherited Methods from ClassLoader: addSourceRoot, forName, getSystem, getTypeByName, loadClass, loadObjectBundle, loadPackage, loadSourceClass, objectAbiVersion