public class SyntheticRepository extends MemorySensitiveClassPathRepository
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.
Repository| Modifier and Type | Method and Description |
|---|---|
ClassPath |
getClassPath()
Gets the ClassPath associated with this Repository
|
static SyntheticRepository |
getInstance() |
static SyntheticRepository |
getInstance(ClassPath classPath) |
JavaClass |
loadClass(Class<?> clazz)
Finds the JavaClass object for a runtime Class object.
|
JavaClass |
loadClass(String className)
Finds a JavaClass object by name.
|
clear, findClass, removeClass, storeClasspublic static SyntheticRepository getInstance()
public static SyntheticRepository getInstance(ClassPath classPath)
public ClassPath getClassPath()
RepositorygetClassPath in interface Repositorypublic JavaClass loadClass(Class<?> clazz) throws ClassNotFoundException
loadClass in interface Repositoryclazz - the runtime Class objectClassNotFoundException - if the class is not in the Repository, and its representation could not be foundClasspublic JavaClass loadClass(String className) throws ClassNotFoundException
loadClass in interface RepositoryclassName - the name of the classClassNotFoundException - if the class is not in the Repository, and could not be found on the classpathCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.