Package org.aspectj.apache.bcel.util
Klasse SyntheticRepository
java.lang.Object
org.aspectj.apache.bcel.util.SyntheticRepository
- Alle implementierten Schnittstellen:
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().
It is designed to be used as a singleton, however it can also be used with custom classpaths. /** Abstract definition of a class repository. Instances may be used to load classes from different sources and may be used in the Repository.setRepository method.
It is designed to be used as a singleton, however it can also be used with custom classpaths. /** Abstract definition of a class repository. Instances may be used to load classes from different sources and may be used in the Repository.setRepository method.
- Version:
- $Id: SyntheticRepository.java,v 1.8 2009/09/09 19:56:20 aclement Exp $
- Autor:
- M. Dahm, David Dixon-Peugh
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
clear()
Clear all entries from cache.Find an already defined (cached) JavaClass object by name.static SyntheticRepository
static SyntheticRepository
getInstance
(ClassPath classPath) Try to find class source via getResourceAsStream().Load a JavaClass object for the given class name using the CLASSPATH environment variable.void
removeClass
(JavaClass clazz) Remove class from repositoryvoid
storeClass
(JavaClass clazz) Store a new JavaClass instance into this Repository.
-
Methodendetails
-
getInstance
-
getInstance
-
storeClass
Store a new JavaClass instance into this Repository.- Angegeben von:
storeClass
in SchnittstelleRepository
-
removeClass
Remove class from repository- Angegeben von:
removeClass
in SchnittstelleRepository
-
findClass
Find an already defined (cached) JavaClass object by name.- Angegeben von:
findClass
in SchnittstelleRepository
-
loadClass
Load a JavaClass object for the given class name using the CLASSPATH environment variable.- Angegeben von:
loadClass
in SchnittstelleRepository
- Löst aus:
ClassNotFoundException
-
loadClass
Try to find class source via getResourceAsStream().- Angegeben von:
loadClass
in SchnittstelleRepository
- Gibt zurück:
- JavaClass object for given runtime class
- Löst aus:
ClassNotFoundException
- Siehe auch:
-
clear
public void clear()Clear all entries from cache.- Angegeben von:
clear
in SchnittstelleRepository
-