Class GizmoClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- ai.timefold.solver.core.impl.domain.common.accessor.gizmo.GizmoClassLoader
-
public final class GizmoClassLoader extends ClassLoader
Loads a class if we have the Gizmo-generated bytecode for it, otherwise uses the currentThread's contextClassLoader. This implementation is thread-safe.
-
-
Constructor Summary
Constructors Constructor Description GizmoClassLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>findClass(String name)byte[]getBytecodeFor(String className)StringgetName()booleanhasBytecodeFor(String className)voidstoreBytecode(String className, byte[] bytecode)-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
getName
public String getName()
- Overrides:
getNamein classClassLoader
-
findClass
public Class<?> findClass(String name) throws ClassNotFoundException
- Overrides:
findClassin classClassLoader- Throws:
ClassNotFoundException
-
getBytecodeFor
public byte[] getBytecodeFor(String className)
-
hasBytecodeFor
public boolean hasBytecodeFor(String className)
-
storeBytecode
public void storeBytecode(String className, byte[] bytecode)
-
-