Package com.spertus.jacquard.coverage
Class MemoryClassLoader
java.lang.Object
java.lang.ClassLoader
com.spertus.jacquard.coverage.MemoryClassLoader
A class loader that loads classes from in-memory data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefinition
(String name, byte[] bytes) Add a in-memory representation of a class.protected Class<?>
Methods inherited from class 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
-
Constructor Details
-
MemoryClassLoader
public MemoryClassLoader()
-
-
Method Details
-
addDefinition
Add a in-memory representation of a class.- Parameters:
name
- name of the classbytes
- class definition
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-