org.aspectj.apache.bcel.Repository
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static ClassLoader | |
| private int | |
| private static int | |
| private int | |
| public static boolean | |
| private ClassLoaderReference | |
| private WeakHashMap | |
| private int | |
| private int | |
| private static int | |
| private ClassLoaderRepository. | |
| private static ClassLoaderRepository. | |
| private long | |
| private long | |
| private static Set | |
| private int | |
| public static boolean | |
| public static boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements org. |
| public JavaClass | findClass(String className)
Implements org. |
| private JavaClass | |
| private JavaClass | |
| private static synchronized ClassLoader | |
| public JavaClass | loadClass(String className)
Implements org. |
| public JavaClass | loadClass(Class<T> clazz)
Implements org. |
| public void | removeClass(JavaClass clazz)
Implements org. |
| public String | |
| 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 |
| public void | |
| public void | storeClass(JavaClass clazz)
Implements org. |
| private void | storeClassAsReference(URL url, JavaClass clazz)
Store a new JavaClass into this repository as a soft reference and return the reference |
| private URL |
| bootClassLoader | back to summary |
|---|---|
| private static ClassLoader bootClassLoader | |
| cacheHitsLocal | back to summary |
|---|---|
| private int cacheHitsLocal | |
| cacheHitsShared | back to summary |
|---|---|
| private static int cacheHitsShared | |
| classesLoadedCount | back to summary |
|---|---|
| private int classesLoadedCount | |
| ignoreCacheClearRequests | back to summary |
|---|---|
| public static boolean ignoreCacheClearRequests | |
| loaderRef | back to summary |
|---|---|
| private ClassLoaderReference loaderRef | |
| localCache | back to summary |
|---|---|
| private WeakHashMap<URL, SoftReference<JavaClass>> localCache | |
| misses | back to summary |
|---|---|
| private int misses | |
| missLocalEvicted | back to summary |
|---|---|
| private int missLocalEvicted | |
| missSharedEvicted | back to summary |
|---|---|
| private static int missSharedEvicted | |
| nameMap | back to summary |
|---|---|
| private ClassLoaderRepository. | |
| sharedCache | back to summary |
|---|---|
| private static ClassLoaderRepository. | |
| timeManipulatingURLs | back to summary |
|---|---|
| private long timeManipulatingURLs | |
| timeSpentLoading | back to summary |
|---|---|
| private long timeSpentLoading | |
| unavailableClasses | back to summary |
|---|---|
| private static Set<String> unavailableClasses | |
| unavailableClassesCacheHits | back to summary |
|---|---|
| private int unavailableClassesCacheHits | |
| useSharedCache | back to summary |
|---|---|
| public static boolean useSharedCache | |
| useUnavailableClassesCache | back to summary |
|---|---|
| public static boolean useUnavailableClassesCache | |
| ClassLoaderRepository | back to summary |
|---|---|
| public ClassLoaderRepository(ClassLoader loader) | |
| ClassLoaderRepository | back to summary |
|---|---|
| public ClassLoaderRepository(ClassLoaderReference loaderRef) | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Clear all entries from the local cache | |
| findClass | back to summary |
|---|---|
| public JavaClass findClass(String className) Implements org. Find an already defined JavaClass in the local cache. | |
| findClassLocal | back to summary |
|---|---|
| private JavaClass findClassLocal(URL url) | |
| findClassShared | back to summary |
|---|---|
| private JavaClass findClassShared(URL url) Find an already defined JavaClass in the shared cache. | |
| getBootClassLoader | back to summary |
|---|---|
| private static synchronized ClassLoader getBootClassLoader() | |
| loadClass | back to summary |
|---|---|
| public JavaClass loadClass(String className) throws ClassNotFoundException Implements org. Lookup a JavaClass object from the classname provided. | |
| loadClass | back to summary |
|---|---|
| public JavaClass loadClass(Class<T> clazz) throws ClassNotFoundException Implements org. Doc from org. Find the JavaClass instance for the given run-time class object | |
| removeClass | back to summary |
|---|---|
| public void removeClass(JavaClass clazz) Implements org. Remove class from repository | |
| report | back to summary |
|---|---|
| public String report() Produce a report on cache usage. | |
| reportStats | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| public void reset() Reset statistics and clear all caches | |
| storeClass | back to summary |
|---|---|
| public void storeClass(JavaClass clazz) Implements org. Store a new JavaClass into this Repository. | |
| storeClassAsReference | back to summary |
|---|---|
| private void storeClassAsReference(URL url, JavaClass clazz) Store a new JavaClass into this repository as a soft reference and return the reference | |
| toURL | back to summary |
|---|---|
| private URL toURL(String className) | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| pack-priv boolean | |
| private ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public Set | entrySet()
Implements abstract java. Implements java. Set view of the mappings contained in this map.
|
| public Object | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| private void | |
| public Object | put(Object
key with which the specified value is to be associated k, Object value to be associated with the specified key v)Overrides java. Implements java. |
| public Object | remove(Object
key whose mapping is to be removed from the map k)Overrides java. Implements java. |
| public int | size()
Overrides java. Implements java. |
| map | back to summary |
|---|---|
| private Map<Object, ClassLoaderRepository. | |
| recordMiss | back to summary |
|---|---|
| pack-priv boolean recordMiss | |
| rq | back to summary |
|---|---|
| private ReferenceQueue<T> rq | |
| SoftHashMap | back to summary |
|---|---|
| public SoftHashMap(Map<Object, ClassLoaderRepository. | |
| SoftHashMap | back to summary |
|---|---|
| public SoftHashMap() | |
| SoftHashMap | back to summary |
|---|---|
| public SoftHashMap(Map<K, V> map, boolean b) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a | |
| get | back to summary |
|---|---|
| public Object get(Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| processQueue | back to summary |
|---|---|
| private void processQueue() | |
| put | back to summary |
|---|---|
| public Object put(Object k, Object v) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| remove | back to summary |
|---|---|
| public Object remove(Object k) Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| key | back to summary |
|---|---|
| private final Object key | |
| SpecialValue | back to summary |
|---|---|
| pack-priv SpecialValue(Object k, Object v) | |