Package org.apache.cassandra.triggers
Class CustomClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.cassandra.triggers.CustomClassLoader
- All Implemented Interfaces:
Closeable,AutoCloseable
Custom class loader will load the classes from the class path, CCL will load
the classes from the URL first, if it cannot find the required class it
will let the parent class loader do its job.
Note: If the CCL is GC'ed then the associated classes will be unloaded.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomClassLoader(ClassLoader parent) CustomClassLoader(ClassLoader parent, File classPathDir) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassPath(File dir) Class<?>Class<?>loadClassInternal(String name) Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstanceMethods inherited from class java.security.SecureClassLoader
defineClass, defineClassMethods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
CustomClassLoader
-
CustomClassLoader
-
-
Method Details
-
addClassPath
-
loadClass
- Overrides:
loadClassin classClassLoader- Throws:
ClassNotFoundException
-
loadClassInternal
- Throws:
ClassNotFoundException
-