net.sf.ehcache.management
Class DevModeClassLoader
java.lang.Object
java.lang.ClassLoader
net.sf.ehcache.management.DevModeClassLoader
public class DevModeClassLoader
- extends ClassLoader
Classloader used for devmode to load management classes
Substitutes for ResourceClassLoader
- Author:
- hhuynh
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DevModeClassLoader
public DevModeClassLoader(URL depsReource,
ClassLoader parent)
- constructor with a classloader parent
- Parameters:
parent
-
devModeResource
public static URL devModeResource()
- returns either EE or OS resource file that contains rest agent dependencies
null if not found
- Returns:
loadClass
public Class<?> loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Overrides:
loadClass
in class ClassLoader
- Throws:
ClassNotFoundException
findClass
protected Class<?> findClass(String name)
throws ClassNotFoundException
- Overrides:
findClass
in class ClassLoader
- Throws:
ClassNotFoundException
getResource
public URL getResource(String name)
- Overrides:
getResource
in class ClassLoader
getResources
public Enumeration<URL> getResources(String name)
throws IOException
- Overrides:
getResources
in class ClassLoader
- Throws:
IOException
findResource
protected URL findResource(String name)
- Overrides:
findResource
in class ClassLoader
findResources
protected Enumeration<URL> findResources(String name)
throws IOException
- Overrides:
findResources
in class ClassLoader
- Throws:
IOException
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Overrides:
getResourceAsStream
in class ClassLoader
Copyright 2001-2014, Terracotta, Inc.