Package org.apache.cassandra.bridge
Class PostDelegationClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.apache.cassandra.bridge.PostDelegationClassLoader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class PostDelegationClassLoader extends java.net.URLClassLoaderThis custom implementation of aClassLoaderenables deferred execution-time loading of a particular version of class hierarchy from one of many embedded thecassandra-alllibrary JARs. It first attempts to load any requested class from the extracted JAR, and resorts to using the parent class loader when the the class is not there. This behavior is opposite to the one of standardURLClassLoader, which invokes its parent class loader first.
-
-
Constructor Summary
Constructors Constructor Description PostDelegationClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<?>loadClass(java.lang.String name, boolean resolve)-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods 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
-
-