public class GoodCitizenClassLoader extends URLClassLoader implements DisposableClassLoader
dispose()
method to release any connections to resources.Modifier and Type | Class and Description |
---|---|
protected static class |
GoodCitizenClassLoader.NonCachingURLStreamHandlerFactory |
Constructor and Description |
---|
GoodCitizenClassLoader(URL[] urls,
ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the
ClassLoader by closing all the resources opened by this ClassLoader . |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public GoodCitizenClassLoader(URL[] urls, ClassLoader parent)
public void dispose()
ClassLoader
by closing all the resources opened by this ClassLoader
.
See URLClassLoader.close()
.dispose
in interface DisposableClassLoader
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.