public class CustomURLClassLoader extends URLClassLoader implements LoggableClassLoader
Constructor and Description |
---|
CustomURLClassLoader(String name,
URL[] urls,
ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
findClass(String name) |
URL |
findResource(String name) |
String |
getLogName()
A class loader that can provide a log name asspciated with it.
|
URL |
getResource(String name) |
URL[] |
getSearchPath()
Alternate method for getURLs (some implementations override it in a non-traceable fashion)
|
protected Class<?> |
loadClass(String name,
boolean resolve) |
String |
toString() |
addURL, close, definePackage, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected final Logger logger
public CustomURLClassLoader(String name, URL[] urls, ClassLoader parent)
public String getLogName()
LoggableClassLoader
getLogName
in interface LoggableClassLoader
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
public URL getResource(String name)
getResource
in class ClassLoader
public URL findResource(String name)
findResource
in class URLClassLoader
public URL[] getSearchPath()
Copyright © GigaSpaces.