org.apache.bcel.util
Interface Repository
- java.io.Serializable
- ClassLoaderRepository, SyntheticRepository
public interface Repository
extends java.io.Serializable
Abstract definition of a class repository. Instances may be used
to load classes from different sources and may be used in the
Repository.setRepository method.
$Id: Repository.java 386056 2006-03-15 11:31:56Z tcurdt $ void | clear() - Clear all entries from cache.
|
JavaClass | findClass(String className) - Find the class with the name provided, if the class
isn't there, return NULL.
|
ClassPath | getClassPath() - Get the ClassPath associated with this Repository
|
JavaClass | loadClass(Class clazz) - Find the JavaClass instance for the given run-time class object
|
JavaClass | loadClass(String className) - Find the class with the name provided, if the class
isn't there, make an attempt to load it.
|
void | removeClass(JavaClass clazz) - Remove class from repository
|
void | storeClass(JavaClass clazz) - Store the provided class under "clazz.getClassName()"
|
clear
public void clear()
Clear all entries from cache.
findClass
public JavaClass findClass(String className)
Find the class with the name provided, if the class
isn't there, return NULL.
getClassPath
public ClassPath getClassPath()
Get the ClassPath associated with this Repository
loadClass
public JavaClass loadClass(Class clazz)
throws java.lang.ClassNotFoundException
Find the JavaClass instance for the given run-time class object
loadClass
public JavaClass loadClass(String className)
throws java.lang.ClassNotFoundException
Find the class with the name provided, if the class
isn't there, make an attempt to load it.
removeClass
public void removeClass(JavaClass clazz)
Remove class from repository
storeClass
public void storeClass(JavaClass clazz)
Store the provided class under "clazz.getClassName()"