|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.util.ClassLoaderUtil
public final class ClassLoaderUtil
Keeps all classloading in ehcache consistent.
| Method Summary | |
|---|---|
static Object |
createNewInstance(ClassLoader loader,
String className)
Creates a new class instance with the given loader. |
static Object |
createNewInstance(ClassLoader loader,
String className,
Class[] argTypes,
Object[] args)
Creates a new class instance and passes args to the constructor call. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object createNewInstance(ClassLoader loader,
String className)
throws CacheException
loader - the classloader to load the classclassName - a fully qualified class name
CacheException - if instance cannot be created due to a missing class or exception
public static Object createNewInstance(ClassLoader loader,
String className,
Class[] argTypes,
Object[] args)
throws CacheException
loader - the classloader to load the classclassName - a fully qualified class nameargTypes - Types for constructor argument parametersargs - Values for constructor argument parameters
CacheException - if instance cannot be created due to a missing class or exception
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||