Package org.aspectj.apache.bcel.util
Klasse ClassLoaderRepository
java.lang.Object
org.aspectj.apache.bcel.util.ClassLoaderRepository
- Alle implementierten Schnittstellen:
Repository
The repository maintains information about which classes have been loaded.
It loads its data from the ClassLoader implementation passed into its constructor.
- Version:
- $Id: ClassLoaderRepository.java,v 1.13 2009/09/09 19:56:20 aclement Exp $
- Autor:
- M. Dahm, David Dixon-Peugh
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic boolean
static boolean
static boolean
-
Konstruktorübersicht
KonstruktorBeschreibungClassLoaderRepository
(ClassLoader loader) ClassLoaderRepository
(ClassLoaderReference loaderRef) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
clear()
Clear all entries from the local cacheFind an already defined JavaClass in the local cache.Find the JavaClass instance for the given run-time class objectLookup a JavaClass object from the classname provided.void
removeClass
(JavaClass clazz) Remove class from repositoryreport()
Produce a report on cache usage.long[]
Returns an array of the stats, for testing, the order is fixed: 0=time spent loading (static) 1=time spent manipulating URLs (static) 2=classes loaded (static) 3=cache hits shared (static) 4=misses in shared due to eviction (static) 5=cache hits local 6=misses in local due to eviction 7=shared cache sizevoid
reset()
Reset statistics and clear all cachesvoid
storeClass
(JavaClass clazz) Store a new JavaClass into this Repository.
-
Felddetails
-
ignoreCacheClearRequests
public static boolean ignoreCacheClearRequests
-
Konstruktordetails
-
ClassLoaderRepository
-
ClassLoaderRepository
-
-
Methodendetails
-
storeClass
Store a new JavaClass into this Repository.- Angegeben von:
storeClass
in SchnittstelleRepository
-
removeClass
Remove class from repository- Angegeben von:
removeClass
in SchnittstelleRepository
-
findClass
Find an already defined JavaClass in the local cache.- Angegeben von:
findClass
in SchnittstelleRepository
-
loadClass
Lookup a JavaClass object from the classname provided.- Angegeben von:
loadClass
in SchnittstelleRepository
- Löst aus:
ClassNotFoundException
-
report
Produce a report on cache usage. -
reportStats
public long[] reportStats()Returns an array of the stats, for testing, the order is fixed: 0=time spent loading (static) 1=time spent manipulating URLs (static) 2=classes loaded (static) 3=cache hits shared (static) 4=misses in shared due to eviction (static) 5=cache hits local 6=misses in local due to eviction 7=shared cache size -
reset
public void reset()Reset statistics and clear all caches -
loadClass
Beschreibung aus Schnittstelle kopiert:Repository
Find the JavaClass instance for the given run-time class object- Angegeben von:
loadClass
in SchnittstelleRepository
- Löst aus:
ClassNotFoundException
-
clear
public void clear()Clear all entries from the local cache- Angegeben von:
clear
in SchnittstelleRepository
-