Package org.apache.jmeter
Class DynamicClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.jmeter.DynamicClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
This is a basic URL classloader for loading new resources
dynamically.
It allows public access to the addURL() method.
It also adds a convenience method to update the current thread classloader
-
Constructor Summary
ConstructorDescriptionDynamicClassLoader
(URL[] urls) DynamicClassLoader
(URL[] urls, ClassLoader parent) DynamicClassLoader
(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
updateLoader
(URL[] urls) Returns list of URLs to add to the thread's classloader.Methods inherited from class java.net.URLClassLoader
close, definePackage, findClass, 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, 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
-
DynamicClassLoader
-
DynamicClassLoader
-
DynamicClassLoader
-
-
Method Details
-
addURL
- Overrides:
addURL
in classURLClassLoader
-
updateLoader
Returns list of URLs to add to the thread's classloader.- Parameters:
urls
- - list of URLs to add to the thread's classloader
-