ResourceLoader

interface ResourceLoader

Abstraction for loading resources (streams, files, and classes).

Inheritors

Functions

Link copied to clipboard
abstract fun <T> findClass(cname: String, expectedType: KClass<*>): KClass<*>

Finds class of the name and expected type

Link copied to clipboard
open fun <T> newInstance(cname: String, expectedType: KClass<*>): T

Creates an instance of the name and expected type

Link copied to clipboard
abstract fun openResource(resource: String): InputStream

Opens a named resource