Interface Repository
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ClassLoaderRepository, SyntheticRepository
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 TypeMethodDescriptionvoidclear()Clear all entries from cache.Find the class with the name provided, if the class isn't there, return NULL.Get the ClassPath associated with this RepositoryFind the JavaClass instance for the given run-time class objectFind the class with the name provided, if the class isn't there, make an attempt to load it.voidremoveClass(JavaClass clazz) Remove class from repositoryvoidstoreClass(JavaClass clazz) Store the provided class under "clazz.getClassName()"
-
Method Details
-
storeClass
Store the provided class under "clazz.getClassName()" -
removeClass
Remove class from repository -
findClass
-
loadClass
Find the class with the name provided, if the class isn't there, make an attempt to load it.- Throws:
ClassNotFoundException
-
loadClass
Find the JavaClass instance for the given run-time class object- Throws:
ClassNotFoundException
-
clear
void clear()Clear all entries from cache. -
getClassPath
ClassPath getClassPath()Get the ClassPath associated with this Repository
-