Package org.aspectj.apache.bcel.util
Class ThreadLocalAwareRepository
java.lang.Object
org.aspectj.apache.bcel.util.ThreadLocalAwareRepository
- All Implemented Interfaces:
Repository
-
Constructor Summary
Constructors -
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.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.voidremoveClass(JavaClass clazz)Remove class from repositorystatic voidsetCurrentRepository(Repository repository)voidstoreClass(JavaClass clazz)Store the provided class under "clazz.getClassName()"
-
Constructor Details
-
ThreadLocalAwareRepository
public ThreadLocalAwareRepository()
-
-
Method Details
-
setCurrentRepository
-
storeClass
Description copied from interface:RepositoryStore the provided class under "clazz.getClassName()"- Specified by:
storeClassin interfaceRepository
-
removeClass
Description copied from interface:RepositoryRemove class from repository- Specified by:
removeClassin interfaceRepository
-
findClass
Description copied from interface:RepositoryFind the class with the name provided, if the class isn't there, return NULL.- Specified by:
findClassin interfaceRepository
-
loadClass
Description copied from interface:RepositoryFind the class with the name provided, if the class isn't there, make an attempt to load it.- Specified by:
loadClassin interfaceRepository- Throws:
ClassNotFoundException
-
loadClass
Description copied from interface:RepositoryFind the JavaClass instance for the given run-time class object- Specified by:
loadClassin interfaceRepository- Throws:
ClassNotFoundException
-
clear
public void clear()Description copied from interface:RepositoryClear all entries from cache.- Specified by:
clearin interfaceRepository
-