ehcache

net.sf.ehcache.management
Class DevModeClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by net.sf.ehcache.management.DevModeClassLoader

public class DevModeClassLoader
extends ClassLoader

Classloader used for devmode to load management classes Substitutes for ResourceClassLoader

Author:
hhuynh

Constructor Summary
DevModeClassLoader(URL depsReource, ClassLoader parent)
          constructor with a classloader parent
 
Method Summary
static URL devModeResource()
          returns either EE or OS resource file that contains rest agent dependencies null if not found
protected  Class<?> findClass(String name)
           
protected  URL findResource(String name)
           
protected  Enumeration<URL> findResources(String name)
           
 URL getResource(String name)
           
 InputStream getResourceAsStream(String name)
           
 Enumeration<URL> getResources(String name)
           
 Class<?> loadClass(String name, boolean resolve)
           
 
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
 

Constructor Detail

DevModeClassLoader

public DevModeClassLoader(URL depsReource,
                          ClassLoader parent)
constructor with a classloader parent

Parameters:
parent -
Method Detail

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

ehcache

Copyright 2001-2015, Terracotta, Inc.