org.apache.bcel.util

Interface Repository

public interface Repository extends 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.

See Also: Repository

Method Summary
voidclear()
Clear all entries from cache.
JavaClassfindClass(String className)
Find the class with the name provided, if the class isn't there, return NULL.
ClassPathgetClassPath()
Get the ClassPath associated with this Repository
JavaClassloadClass(String className)
Find the class with the name provided, if the class isn't there, make an attempt to load it.
JavaClassloadClass(Class clazz)
Find the JavaClass instance for the given run-time class object
voidremoveClass(JavaClass clazz)
Remove class from repository
voidstoreClass(JavaClass clazz)
Store the provided class under "clazz.getClassName()"

Method Detail

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(String className)
Find the class with the name provided, if the class isn't there, make an attempt to load it.

loadClass

public JavaClass loadClass(Class clazz)
Find the JavaClass instance for the given run-time class object

removeClass

public void removeClass(JavaClass clazz)
Remove class from repository

storeClass

public void storeClass(JavaClass clazz)
Store the provided class under "clazz.getClassName()"