Package org.rapidcontext.app.plugin
Class PluginManager.PluginClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.rapidcontext.app.plugin.PluginManager.PluginClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
PluginManager
Simple extension of URLClassLoader to be able to add new URL:s
after creation.
-
Constructor Summary
Constructors -
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
-
PluginClassLoader
public PluginClassLoader()Creates a new empty class loader.
-
-
Method Details
-
addJar
Adds the specified JAR file to the class loader.- Parameters:
file
- the JAR file to add- Throws:
IOException
- if the file couldn't be located
-