public abstract class InjectionClassLoader extends ClassLoader
| Modifier and Type | Class and Description |
|---|---|
static class |
InjectionClassLoader.Strategy
A class loading strategy for adding a type to an injection class loader.
|
| Modifier | Constructor and Description |
|---|---|
protected |
InjectionClassLoader(ClassLoader parent)
Creates a new injection class loader.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Class<?> |
defineClass(String name,
byte[] binaryRepresentation)
Defines a new type to be loaded by this class loader.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprotected InjectionClassLoader(ClassLoader parent)
parent - The class loader's parent.public abstract Class<?> defineClass(String name, byte[] binaryRepresentation) throws ClassNotFoundException
IllegalArgumentException is thrown.name - The name of the type.binaryRepresentation - The type's binary representation.ClassNotFoundException - If the class could not be loaded.Copyright © 2014–2017. All rights reserved.