Package org.apache.drill.exec.compile
Class CachedClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.drill.exec.compile.CachedClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
Class loader for "plain-old Java" generated classes.
Very basic implementation: allows defining a class from
byte codes and finding the loaded classes. Delegates
all other class requests to the thread context class
loader. This structure ensures that a generated class can
find both its own inner classes as well as all the standard
Drill implementation classes.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
CachedClassLoader
public CachedClassLoader()
-
-
Method Details
-
addClass
-
findClass
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-
addClasses
-