public class DefaultResourceManagerClassLoader extends ClassLoader implements ResourceManagerClassLoader
Constructor and Description |
---|
DefaultResourceManagerClassLoader()
Constructor.
|
DefaultResourceManagerClassLoader(ClassLoader delegateClassLoader)
Another Constructor.
|
DefaultResourceManagerClassLoader(ResourceManager resourceManager)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected URL |
findResource(String name)
Find the resource.
|
protected Enumeration<URL> |
findResources(String name)
Find the resources.
|
ClassLoader |
getDelegateClassLoader() |
URL |
getResource(String name) |
ResourceManager |
getResourceManager() |
Enumeration<URL> |
getResources(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve)
Load the class.
|
void |
setDelegateClassLoader(ClassLoader delegateClassLoader) |
void |
setResourceManager(ResourceManager resourceManager)
Set the resource manager.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public DefaultResourceManagerClassLoader()
public DefaultResourceManagerClassLoader(ClassLoader delegateClassLoader)
delegateClassLoader
- classloader which is consulted firstpublic DefaultResourceManagerClassLoader(ResourceManager resourceManager)
resourceManager
- the resource manager.protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
name
- the name.resolve
- the resolve flag.ClassNotFoundException
- when the class cannot be found.public URL getResource(String name)
getResource
in class ClassLoader
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
protected URL findResource(String name)
findResource
in class ClassLoader
name
- the name.protected Enumeration<URL> findResources(String name) throws IOException
findResources
in class ClassLoader
name
- the name of the resource.IOException
- when an I/O error occurs.public void setResourceManager(ResourceManager resourceManager)
setResourceManager
in interface ResourceManagerClassLoader
resourceManager
- the resource manager.public ResourceManager getResourceManager()
getResourceManager
in interface ResourceManagerClassLoader
public void setDelegateClassLoader(ClassLoader delegateClassLoader)
public ClassLoader getDelegateClassLoader()
Copyright © 2019. All rights reserved.