类 MemoryClassLoader
java.lang.Object
java.lang.ClassLoader
com.obermuhlner.scriptengine.java.MemoryClassLoader
A
ClassLoader that loads classes from memory.-
字段概要
字段修饰符和类型字段说明static final StringURL used to identify theCodeSourceof theProtectionDomainused by this class loader.private ProtectionDomain -
构造器概要
构造器构造器说明MemoryClassLoader(Map<String, byte[]> mapClassBytes, ClassLoader parent) Creates aMemoryClassLoader. -
方法概要
从类继承的方法 java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
字段详细资料
-
MEMORY_CLASS_URL
URL used to identify theCodeSourceof theProtectionDomainused by this class loader. This is useful to identify classes loaded by this class loader in a policy file.grant codeBase "jrt:/com.obermuhlner.scriptengine.java/memory-class" { permission java.lang.RuntimePermission "exitVM"; };- 另请参阅:
-
protectionDomain
-
mapClassBytes
-
-
构造器详细资料
-
MemoryClassLoader
Creates aMemoryClassLoader.- 参数:
mapClassBytes- the map of class names to compiled classesparent- the parentClassLoader
-
-
方法详细资料
-
loadClass
- 覆盖:
loadClass在类中ClassLoader- 抛出:
ClassNotFoundException
-