org.apache.jmeter
Class DynamicClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.jmeter.DynamicClassLoader
public class DynamicClassLoader
- extends URLClassLoader
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
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicClassLoader
public DynamicClassLoader(URL[] urls)
DynamicClassLoader
public DynamicClassLoader(URL[] urls,
ClassLoader parent)
DynamicClassLoader
public DynamicClassLoader(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory)
addURL
public void addURL(URL url)
- Overrides:
addURL
in class URLClassLoader
updateLoader
public static void updateLoader(URL[] urls)
- Parameters:
urls
- - list of URLs to add to the thread's classloader
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.