Class GeneratedClassLoader
java.lang.Object
java.lang.ClassLoader
io.micronaut.sourcegen.bytecode.tck.GeneratedClassLoader
Loads classes a backend wrote, by binary name, so that they can refer to each other and to the
classes of the tests that wrote them. Shared by the TCK and the tests of every backend.
- Since:
- 2.3
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratedClassLoader(ClassLoader parent, Map<String, byte[]> classes) A loader with the given parent.GeneratedClassLoader(Map<String, byte[]> classes) A loader whose parent is the loader of the TCK, and so of the tests. -
Method Summary
Methods inherited from class ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, 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, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
GeneratedClassLoader
-
GeneratedClassLoader
A loader with the given parent.- Parameters:
parent- The parent loaderclasses- The class file bytes by binary name
-
-
Method Details
-
defineDirectly
-
findClass
- Overrides:
findClassin classClassLoader- Throws:
ClassNotFoundException
-