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.
|
abstract Map<String,Class<?>> |
defineClasses(Map<String,byte[]> typeDefinitions)
Defines a group of types 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, setSigners
protected InjectionClassLoader(ClassLoader parent)
parent
- The class loader's parent.public abstract Class<?> defineClass(String name, byte[] binaryRepresentation) throws ClassNotFoundException
name
- The name of the type.binaryRepresentation
- The type's binary representation.ClassNotFoundException
- If the class could not be loaded.public abstract Map<String,Class<?>> defineClasses(Map<String,byte[]> typeDefinitions) throws ClassNotFoundException
typeDefinitions
- The types binary representations.ClassNotFoundException
- If the class could not be loaded.Copyright © 2014–2018. All rights reserved.