Package org.apache.bcel.util
Class SyntheticRepository
java.lang.Object
org.apache.bcel.util.AbstractClassPathRepository
org.apache.bcel.util.MemorySensitiveClassPathRepository
org.apache.bcel.util.SyntheticRepository
- 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().
This repository uses a factory design, allowing it to maintain a collection of different classpaths, and as such It is designed to be used as a singleton per classpath.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SyntheticRepositoryGets the singleton instance for the system class path.static SyntheticRepositorygetInstance(ClassPath classPath) Gets the singleton instance for the given class path.Methods inherited from class org.apache.bcel.util.MemorySensitiveClassPathRepository
clear, findClass, removeClass, storeClassMethods inherited from class org.apache.bcel.util.AbstractClassPathRepository
getClassPath, loadClass, loadClass
-
Field Details
-
MAP
-
-
Constructor Details
-
SyntheticRepository
-
-
Method Details
-
getInstance
Gets the singleton instance for the system class path.- Returns:
- The singleton instance.
-
getInstance
Gets the singleton instance for the given class path.- Parameters:
classPath- The class path.- Returns:
- The singleton instance.
-