class JarCache
extends java.lang.Object
Implementation is threadsafe. Since loading index information is O(jar-entries) we cache the snapshot in a WeakHashMap. The implementation pays attention to lastModified timestamp of the jar and will invalidate the cache entry if jar has been updated since the snapshot calculation.
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
JarCache.JarIndex |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,JarCache.JarIndex> |
indexCache |
| Constructor and Description |
|---|
JarCache() |
| Modifier and Type | Method and Description |
|---|---|
JarCache.JarIndex |
getIndex(java.lang.String jarPath) |
private final java.util.Map<java.lang.String,JarCache.JarIndex> indexCache
public JarCache.JarIndex getIndex(java.lang.String jarPath)