ZipEntry. This mechanism is suitable for relatively
large numbers of instrumented classes/aspects (100's and more) since it
holds all of them in a single (ZIP) file. The down side is that any
modifications to the cache require re-writing the entire ZIP file. This
can cause the ZIP file to become corrupted if interrupted in mid-update,
thus requiring the re-population of the cache on next application activation
(though the overhead in this case is not prohibitvely high...)
| Modifier and Type | Field and Description |
|---|---|
| private static final AsynchronousFileCacheBacking. | |
| public static final String | |
| private final File |
| Access | Constructor and Description |
|---|---|
| public |
| defaultCreator | back to summary |
|---|---|
| private static final AsynchronousFileCacheBacking. | |
| ZIP_FILE | back to summary |
|---|---|
| public static final String ZIP_FILE | |
| zipFile | back to summary |
|---|---|
| private final File zipFile | |
| ZippedFileCacheBacking | back to summary |
|---|---|
| public ZippedFileCacheBacking(File cacheDir) | |
| createBacking | back to summary |
|---|---|
| public static final ZippedFileCacheBacking createBacking(File cacheDir) | |
| getZipFile | back to summary |
|---|---|
| public File getZipFile() | |
| readClassBytes | back to summary |
|---|---|
| protected Map Implements abstract org.
| |
| readZipClassBytes | back to summary |
|---|---|
| public static final Map | |
| removeClassBytes | back to summary |
|---|---|
| protected void removeClassBytes(String key) throws Exception Implements abstract org. Doc from org. Helper for | |
| resolveIndexMapEntry | back to summary |
|---|---|
| protected AbstractIndexedFileCacheBacking. Overrides org.
| |
| syncClassBytesEntries | back to summary |
|---|---|
| protected boolean syncClassBytesEntries(File dataFile, Map<String, AbstractIndexedFileCacheBacking. | |
| syncIndexEntries | back to summary |
|---|---|
| protected Collection | |
| writeClassBytes | back to summary |
|---|---|
| protected void writeClassBytes(String key, byte[] bytes) throws Exception Overrides org.
| |
| writeZipClassBytes | back to summary |
|---|---|
| public static final void writeZipClassBytes(File file, Map<String, byte[]> entriesMap) throws IOException | |