Dynamic Jar Class Loader
Utility for dynamically loading and instantiating classes from JAR files. The parent loader for the underlying loader will be the class loader that loaded this class. Class loading does not occur until the first call to load a class.
If a JAR file does not exist on one of the paths then an IllegalArgumentException will occur. An IOException will occur if a referenced file is not a valid JAR file.
This class should be referenced with the "use" functionality of Kotlin to ensure that the underlying loader mechanism is closed, or the close() function should be used.
Parameters
a list of paths that reference valid JAR files. The list must not be empty.
Constructors
Properties
Functions
Retrieves the public non-static (instance) function of the supplied class name based on the supplied function name.
Retrieves the public non-static (instance) functions of the supplied class.
Retrieves the public static function of the supplied class name based on the supplied function name.
Retrieves the public static functions of the supplied class name.
Get the list of loaded JAR paths as a list of strings
Retrieves the no argument constructor of the supplied class or null if one does not exist or is inaccessible.
Retrieves the no argument constructor of the supplied class name or null if one does not exist or is inaccessible.
Creates an instance of the class via its no argument constructor.
Creates an instance of the class using its no argument constructor.
Retrieves the public constructors of the supplied java class
Retrieves the public constructors of the supplied class name.
A Kotlin object declaration defines a (static) singleton object within the underlying synthetic class defined with a class name the same as the name of the object. This function returns the associated object reference as an Any reference or null.