public class ClassCache extends Object
Constructor and Description |
---|
ClassCache() |
Modifier and Type | Method and Description |
---|---|
void |
deregisterClass(String name)
Remove an entry from the cache.
|
boolean |
isClassRegistered(String name)
Query a given class' cache status.
|
JavaClass |
lookup(String className,
ClassLoader cl)
Find the cached JavaClass entry for this class, creating one
if necessary.
|
void |
registerClass(String name,
Class cls)
Register a class in the cache.
|
public void registerClass(String name, Class cls)
name
- the name of the class.cls
- a Java Class.public void deregisterClass(String name)
name
- the name of the class to remove.public boolean isClassRegistered(String name)
name
- a class namepublic JavaClass lookup(String className, ClassLoader cl) throws ClassNotFoundException
className
- name of the class desiredcl
- ClassLoader to use if we need to load the classClassNotFoundException
Copyright © The Apache Software Foundation. All Rights Reserved.