Package org.eolang.jeo
Class JeoClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.eolang.jeo.JeoClassLoader
-
public final class JeoClassLoader extends ClassLoader
JEO class loader. This classloader reads classes folder, uploads these classes into a memory and then loads them. This happens before any transformations are applied. Preloading allows safe classes validation. Validator loads "old" classes and uses them for the validation of the "newly" generated classes. Moreover, by usingJeoClassLoader
, we can guarantee that the classes loaded before any transformations are correct. If we use any otherClassLoader
implementation it leads to flaky tests as issue 672 shows.- Since:
- 0.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
loadClass(String name)
-
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
-
-
-
-
Method Detail
-
loadClass
public Class<?> loadClass(String name) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
-