public class JarClassLoader extends URLClassLoader implements PluginClassLoader
Modifier and Type | Field and Description |
---|---|
static String |
LIB_PREFIX |
Constructor and Description |
---|
JarClassLoader(File jarFile,
ClassLoader parent,
Collection<JarClassLoader> dependencyClassLoaders) |
Modifier and Type | Method and Description |
---|---|
groovy.lang.GroovyClassLoader |
getScriptClassLoader() |
boolean |
hasScripts() |
Class<?> |
loadClass(String name) |
Class |
loadScriptClass(String path) |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public static final String LIB_PREFIX
public JarClassLoader(File jarFile, ClassLoader parent, Collection<JarClassLoader> dependencyClassLoaders) throws IOException
IOException
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public boolean hasScripts()
public Class loadScriptClass(String path) throws ClassNotFoundException
ClassNotFoundException
public groovy.lang.GroovyClassLoader getScriptClassLoader()
Copyright © 2019. All Rights Reserved.