Package org.apache.bcel.util
Class ClassPathRepository
java.lang.Object
org.apache.bcel.util.AbstractClassPathRepository
org.apache.bcel.util.ClassPathRepository
- All Implemented Interfaces:
Repository
This repository is used in situations where a Class is created outside the realm of a ClassLoader. Classes are loaded
from the file systems using the paths specified in the given class path. By default, this is the value returned by
ClassPath.getClassPath().
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all entries from cache.Finds an already defined (cached) JavaClass object by name.void
removeClass
(JavaClass javaClass) Removes class from repository.void
storeClass
(JavaClass javaClass) Stores a new JavaClass instance into this Repository.Methods inherited from class org.apache.bcel.util.AbstractClassPathRepository
getClassPath, loadClass, loadClass
-
Field Details
-
loadedClasses
-
-
Constructor Details
-
ClassPathRepository
-
-
Method Details
-
clear
public void clear()Clears all entries from cache.- Specified by:
clear
in interfaceRepository
- Specified by:
clear
in classAbstractClassPathRepository
-
findClass
Finds an already defined (cached) JavaClass object by name.- Specified by:
findClass
in interfaceRepository
- Specified by:
findClass
in classAbstractClassPathRepository
-
removeClass
Removes class from repository.- Specified by:
removeClass
in interfaceRepository
- Specified by:
removeClass
in classAbstractClassPathRepository
-
storeClass
Stores a new JavaClass instance into this Repository.- Specified by:
storeClass
in interfaceRepository
- Specified by:
storeClass
in classAbstractClassPathRepository
-