Package org.apache.bcel.util
Interface Repository
- All Known Implementing Classes:
ClassLoaderRepository
,ClassPathRepository
,LruCacheClassPathRepository
,MemorySensitiveClassPathRepository
,SyntheticRepository
public interface Repository
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:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all entries from cache.Finds the class with the name provided, if the class isn't there, return NULL.Gets the ClassPath associated with this RepositoryFinds the JavaClass instance for the given run-time class objectFinds the class with the name provided, if the class isn't there, make an attempt to load it.void
removeClass
(JavaClass clazz) Removes class from repositoryvoid
storeClass
(JavaClass clazz) Stores the provided class under "clazz.getClassName()"
-
Method Details
-
storeClass
Stores the provided class under "clazz.getClassName()" -
removeClass
Removes class from repository -
findClass
Finds the class with the name provided, if the class isn't there, return NULL. -
loadClass
Finds the class with the name provided, if the class isn't there, make an attempt to load it.- Throws:
ClassNotFoundException
-
loadClass
Finds the JavaClass instance for the given run-time class object- Throws:
ClassNotFoundException
-
clear
void clear()Clears all entries from cache. -
getClassPath
ClassPath getClassPath()Gets the ClassPath associated with this Repository
-