public class PluginClassLoader extends URLClassLoader
| Constructor and Description |
|---|
PluginClassLoader(JavaPluginLoader loader,
ClassLoader parent,
PluginDescriptionFile description,
File dataFolder,
File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Class<?> |
findClass(String name) |
JavaPlugin |
getPlugin() |
protected byte[] |
transformBytecode(byte[] bytecode) |
addURL, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic PluginClassLoader(JavaPluginLoader loader, ClassLoader parent, PluginDescriptionFile description, File dataFolder, File file) throws IOException, InvalidPluginException, MalformedURLException
public JavaPlugin getPlugin()
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class URLClassLoaderClassNotFoundExceptionprotected byte[] transformBytecode(byte[] bytecode)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class URLClassLoaderIOExceptionCopyright © 2021. All rights reserved.