Package org.apache.bcel.util
Class ClassLoaderRepository
java.lang.Object
org.apache.bcel.util.ClassLoaderRepository
- All Implemented Interfaces:
Serializable
,Repository
The repository maintains information about which classes have
been loaded.
It loads its data from the ClassLoader implementation
passed into its constructor.
- Version:
- $Id: ClassLoaderRepository.java 386056 2006-03-15 11:31:56Z tcurdt $
- Author:
- M. Dahm, David Dixon-Peugh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all entries from cache.Find an already defined JavaClass.Get the ClassPath associated with this RepositoryFind the JavaClass instance for the given run-time class objectLookup a JavaClass object from the Class Name provided.void
removeClass
(JavaClass clazz) Remove class from repositoryvoid
storeClass
(JavaClass clazz) Store a new JavaClass into this Repository.
-
Constructor Details
-
ClassLoaderRepository
-
-
Method Details
-
storeClass
Store a new JavaClass into this Repository.- Specified by:
storeClass
in interfaceRepository
-
removeClass
Remove class from repository- Specified by:
removeClass
in interfaceRepository
-
findClass
Find an already defined JavaClass.- Specified by:
findClass
in interfaceRepository
-
loadClass
Lookup a JavaClass object from the Class Name provided.- Specified by:
loadClass
in interfaceRepository
- Throws:
ClassNotFoundException
-
loadClass
Description copied from interface:Repository
Find the JavaClass instance for the given run-time class object- Specified by:
loadClass
in interfaceRepository
- Throws:
ClassNotFoundException
-
clear
public void clear()Clear all entries from cache.- Specified by:
clear
in interfaceRepository
-
getClassPath
Description copied from interface:Repository
Get the ClassPath associated with this Repository- Specified by:
getClassPath
in interfaceRepository
-