Package org.aspectj.weaver.tools.cache
Class AbstractIndexedFileCacheBacking
- java.lang.Object
-
- org.aspectj.weaver.tools.cache.AbstractCacheBacking
-
- org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
-
- org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
-
- All Implemented Interfaces:
CacheBacking
- Direct Known Subclasses:
AsynchronousFileCacheBacking,DefaultFileCacheBacking
public abstract class AbstractIndexedFileCacheBacking extends AbstractFileCacheBacking
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractIndexedFileCacheBacking.IndexEntry
-
Field Summary
Fields Modifier and Type Field Description protected static AbstractIndexedFileCacheBacking.IndexEntry[]EMPTY_INDEXprotected static String[]EMPTY_KEYSstatic StringINDEX_FILE-
Fields inherited from class org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
WEAVED_CLASS_CACHE_DIR
-
Fields inherited from class org.aspectj.weaver.tools.cache.AbstractCacheBacking
logger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIndexedFileCacheBacking(File cacheDir)
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
close, close, delete, getCacheDirectory, writeClassBytes
-
Methods inherited from class org.aspectj.weaver.tools.cache.AbstractCacheBacking
crc
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aspectj.weaver.tools.cache.CacheBacking
clear, get, put, remove
-
-
-
-
Field Detail
-
INDEX_FILE
public static final String INDEX_FILE
- See Also:
- Constant Field Values
-
EMPTY_INDEX
protected static final AbstractIndexedFileCacheBacking.IndexEntry[] EMPTY_INDEX
-
EMPTY_KEYS
protected static final String[] EMPTY_KEYS
-
-
Constructor Detail
-
AbstractIndexedFileCacheBacking
protected AbstractIndexedFileCacheBacking(File cacheDir)
-
-
Method Detail
-
getIndexFile
public File getIndexFile()
-
readIndex
protected Map<String,AbstractIndexedFileCacheBacking.IndexEntry> readIndex()
-
writeIndex
protected void writeIndex()
-
writeIndex
protected void writeIndex(File file)
-
getIndex
protected abstract Map<String,AbstractIndexedFileCacheBacking.IndexEntry> getIndex()
-
readIndex
protected Map<String,AbstractIndexedFileCacheBacking.IndexEntry> readIndex(File cacheDir, File cacheFile)
-
resolveIndexMapEntry
protected AbstractIndexedFileCacheBacking.IndexEntry resolveIndexMapEntry(File cacheDir, AbstractIndexedFileCacheBacking.IndexEntry ie)
-
readIndex
public AbstractIndexedFileCacheBacking.IndexEntry[] readIndex(File indexFile)
-
writeIndex
protected void writeIndex(File indexFile, Map<String,? extends AbstractIndexedFileCacheBacking.IndexEntry> index) throws IOException
- Throws:
IOException
-
writeIndex
protected void writeIndex(File indexFile, AbstractIndexedFileCacheBacking.IndexEntry... entries) throws IOException
- Throws:
IOException
-
writeIndex
protected void writeIndex(File indexFile, Collection<? extends AbstractIndexedFileCacheBacking.IndexEntry> entries) throws IOException
- Throws:
IOException
-
createIndexEntry
public static final AbstractIndexedFileCacheBacking.IndexEntry createIndexEntry(CachedClassEntry classEntry, byte[] originalBytes)
-
-