org.apache.axis.utils.cache
Class ClassCache
java.lang.Object
org.apache.axis.utils.cache.ClassCache
public class ClassCache
extends java.lang.Object
A cache class for JavaClass objects, which enables us to quickly reference
methods.
- Doug Davis (dug@us.ibm.com)
- Glen Daniels (gdaniels@apache.org)
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.
|
ClassCache
public ClassCache()
deregisterClass
public void deregisterClass(String name)
Remove an entry from the cache.
name
- the name of the class to remove.
isClassRegistered
public boolean isClassRegistered(String name)
Query a given class' cache status.
- true if the class is in the cache, false otherwise
lookup
public JavaClass lookup(String className,
ClassLoader cl)
throws ClassNotFoundException
Find the cached JavaClass entry for this class, creating one
if necessary.
className
- name of the class desiredcl
- ClassLoader to use if we need to load the class
registerClass
public void registerClass(String name,
Class cls)
Register a class in the cache. Creates a new JavaClass object
around the given class, and inserts it into the Hashtable, replacing
any previous entry.
name
- the name of the class.cls
- a Java Class.
Copyright © 2005 Apache Web Services Project. All Rights Reserved.