public static class ByteArrayClassLoader.ChildFirst extends ByteArrayClassLoader
ByteArrayClassLoader which applies child-first semantics for the
given type definitions.ByteArrayClassLoader.ChildFirst, ByteArrayClassLoader.PersistenceHandleraccessControlContext, persistenceHandler, protectionDomain, typeDefinitions| Constructor and Description |
|---|
ChildFirst(ClassLoader parent,
Map<String,byte[]> typeDefinitions,
ProtectionDomain protectionDomain,
ByteArrayClassLoader.PersistenceHandler persistenceHandler)
Creates a new child-first byte array class loader.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getResourceAsStream(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
String |
toString() |
findClass, load, ofclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic ChildFirst(ClassLoader parent, Map<String,byte[]> typeDefinitions, ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler)
parent - The ClassLoader that is the parent of this class loader.typeDefinitions - A map of fully qualified class names pointing to their binary representations.protectionDomain - The protection domain to apply where null references an implicit
protection domain.persistenceHandler - The persistence handler of this class loader.protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic InputStream getResourceAsStream(String name)
getResourceAsStream in class ByteArrayClassLoaderpublic String toString()
toString in class ByteArrayClassLoaderCopyright © 2014–2015. All rights reserved.