程序包 bsh.classpath
类 BshClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
bsh.classpath.BshClassLoader
- 所有已实现的接口:
Closeable
,AutoCloseable
- 直接已知子类:
DiscreteFilesClassLoader
One of the things BshClassLoader does is to address a deficiency in
URLClassLoader that prevents us from specifying individual classes
via URLs.
-
构造器概要
构造器限定符构造器说明protected
BshClassLoader
(BshClassManager classManager) For use by childrenBshClassLoader
(BshClassManager classManager, BshClassPath bcp) BshClassLoader
(BshClassManager classManager, URL[] bases) -
方法概要
从类继承的方法 java.net.URLClassLoader
close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
从类继承的方法 java.security.SecureClassLoader
defineClass, defineClass
从类继承的方法 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, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
构造器详细资料
-
BshClassLoader
- 参数:
bases
- URLs JARClassLoader seems to require absolute paths
-
BshClassLoader
- 参数:
bases
- URLs JARClassLoader seems to require absolute paths
-
BshClassLoader
For use by children- 参数:
bases
- URLs JARClassLoader seems to require absolute paths
-
-
方法详细资料
-
addURL
- 覆盖:
addURL
在类中URLClassLoader
-
loadClass
This modification allows us to reload classes which are in the Java VM user classpath. We search first rather than delegate to the parent classloader (or bootstrap path) first. An exception is for BeanShell core classes which are always loaded from the same classloader as the interpreter.- 覆盖:
loadClass
在类中ClassLoader
- 抛出:
ClassNotFoundException
-
findClass
Find the correct source for the class... Try designated loader if any Try our URLClassLoader paths if any Try base loader if any Try system ???- 覆盖:
findClass
在类中URLClassLoader
- 抛出:
ClassNotFoundException
-