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
public class SyntheticRepository extends MemorySensitiveClassPathRepository
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:
Repository
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<ClassPath,SyntheticRepository>
instances
-
Constructor Summary
Constructors Modifier Constructor Description private
SyntheticRepository(ClassPath path)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SyntheticRepository
getInstance()
static SyntheticRepository
getInstance(ClassPath classPath)
-
Methods inherited from class org.apache.bcel.util.MemorySensitiveClassPathRepository
clear, findClass, removeClass, storeClass
-
Methods inherited from class org.apache.bcel.util.AbstractClassPathRepository
getClassPath, loadClass, loadClass
-
-
-
-
Field Detail
-
instances
private static final java.util.Map<ClassPath,SyntheticRepository> instances
-
-
Constructor Detail
-
SyntheticRepository
private SyntheticRepository(ClassPath path)
-
-
Method Detail
-
getInstance
public static SyntheticRepository getInstance()
-
getInstance
public static SyntheticRepository getInstance(ClassPath classPath)
-
-