Apache JMeter

Class DynamicClassLoader

  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by 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

Constructor Summary
DynamicClassLoader(URL[] urls)
DynamicClassLoader(URL[] urls, ClassLoader parent)
DynamicClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)
Method Summary
 void addURL(URL url)
static void updateLoader(URL[] urls)
Methods inherited from class java.net.URLClassLoader
definePackage, findClass, findResource, findResources, getPermissions, 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, 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

Constructor Detail


public DynamicClassLoader(URL[] urls)


public DynamicClassLoader(URL[] urls,
                          ClassLoader parent)


public DynamicClassLoader(URL[] urls,
                          ClassLoader parent,
                          URLStreamHandlerFactory factory)
Method Detail


public void addURL(URL url)
addURL in class URLClassLoader


public static void updateLoader(URL[] urls)
urls - - list of URLs to add to the thread's classloader

Apache JMeter

Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.