@NoInstantiate public class FineGrainedControlClassLoader extends URLClassLoader implements DisposableClassLoader, ClassLoaderLookupPolicyProvider
ClassLoader which enables the control of the class loading lookup mode.
By using a ClassLoaderLookupPolicy this classLoader can use parent-first, parent-only or child-first classloading
lookup mode per package.| Modifier and Type | Class and Description |
|---|---|
protected static class |
FineGrainedControlClassLoader.NonCachingURLStreamHandlerFactory |
| Constructor and Description |
|---|
FineGrainedControlClassLoader(URL[] urls,
ClassLoader parent,
ClassLoaderLookupPolicy lookupPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the
ClassLoader by closing all the resources opened by this ClassLoader. |
Class<?> |
findLocalClass(String name) |
protected Class<?> |
findParentClass(String name,
ClassLoader classLoader) |
ClassLoaderLookupPolicy |
getClassLoaderLookupPolicy() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic FineGrainedControlClassLoader(URL[] urls, ClassLoader parent, ClassLoaderLookupPolicy lookupPolicy)
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionprotected Class<?> findParentClass(String name, ClassLoader classLoader) throws ClassNotFoundException
ClassNotFoundExceptionpublic URL getResource(String name)
getResource in class ClassLoaderpublic Enumeration<URL> getResources(String name) throws IOException
getResources in class ClassLoaderIOExceptionpublic Class<?> findLocalClass(String name) throws ClassNotFoundException
ClassNotFoundExceptionpublic ClassLoaderLookupPolicy getClassLoaderLookupPolicy()
getClassLoaderLookupPolicy in interface ClassLoaderLookupPolicyProviderpublic void dispose()
ClassLoader by closing all the resources opened by this ClassLoader. See
URLClassLoader.close().dispose in interface DisposableClassLoaderCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.