net.sf.ehcache.util
public final class ClassLoaderUtil extends Object
Version: $Id: ClassLoaderUtil.java 135 2006-06-26 06:55:03Z gregluck $
Method Summary | |
---|---|
static Object | createNewInstance(String className)
Creates a new class instance. |
static ClassLoader | getFallbackClassLoader()
Gets a fallback ClassLoader that all classes in ehcache, and extensions,
should use for classloading. |
static ClassLoader | getStandardClassLoader()
Gets the ClassLoader that all classes in ehcache, and extensions, should
use for classloading. |
Parameters: className a fully qualified class name
Returns: null if the instance cannot be loaded
ClassLoader
that all classes in ehcache, and extensions,
should use for classloading. This is used if the context class loader does not work.Returns: the ClassLoaderUtil.class.getClassLoader();
ClassLoader
that all classes in ehcache, and extensions, should
use for classloading. All ClassLoading in ehcache should use this one. This is the only
thing that seems to work for all of the class loading situations found in the wild.Returns: the thread context class loader.