Package heronarts.lx
Class LXClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
heronarts.lx.LXClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
The LX class loader parses JAR files in the LX content directory. Any
valid extension components are automatically registered with the engine as
eligible to be instantiated. Note that this requires an active, upfront definition
of all the classes contained, since any JAR file in this path is considered to
potentially hold LX content.
We subclass from URLClassLoader because the JAR files may contain more than
just class files. They may also contain bundled resource files and using this
classloader ensures that the loaded classes will get proper behavior from methods
like getResourceAsStream().
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
LXClassLoader
(LX lx) protected
LXClassLoader
(LX lx, List<File> jarFiles) -
Method Summary
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
LXClassLoader
-
LXClassLoader
-
-
Method Details
-
load
protected void load() -
dispose
protected void dispose()
-