java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.ibm.java.diagnostics.utils.plugins.LocalPriorityClassloader
- All Implemented Interfaces:
Closeable
,AutoCloseable
Classloader to search for classes locally first before delegating to the parent classloader.
This 'me first' approach is required so that when classes are 'refreshed' and this loader
discarded the old versions on the plugin search path are also discarded.
-
Constructor Summary
ConstructorDescriptionLocalPriorityClassloader
(URL[] urls) LocalPriorityClassloader
(URL[] urls, ClassLoader parent) -
Method Summary
Methods declared in class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods declared in class java.security.SecureClassLoader
defineClass, defineClass
Methods declared in class java.lang.ClassLoader
clearAssertionStatus, clone, 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, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
LocalPriorityClassloader
-
LocalPriorityClassloader
-