Package org.aspectj.apache.bcel.util
Interface Repository
- All Known Implementing Classes:
BcelWorld
,ClassLoaderRepository
,LTWWorld
,NonCachingClassLoaderRepository
,SyntheticRepository
,ThreadLocalAwareRepository
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.
- Version:
- $Id: Repository.java,v 1.5 2009/09/09 19:56:20 aclement Exp $
- Author:
- M. Dahm, David Dixon-Peugh
- See Also:
Repository
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all entries from cache.Find the class with the name provided, if the class isn't there, return NULL.Find 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.void
removeClass(JavaClass clazz)
Remove class from repositoryvoid
storeClass(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
Find the class with the name provided, if the class isn't there, return NULL. -
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.
-