Package org.aspectj.weaver.tools.cache
Class AbstractFileCacheBacking
- java.lang.Object
-
- org.aspectj.weaver.tools.cache.AbstractCacheBacking
-
- org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
-
- All Implemented Interfaces:
CacheBacking
- Direct Known Subclasses:
AbstractIndexedFileCacheBacking
public abstract class AbstractFileCacheBacking extends AbstractCacheBacking
-
-
Field Summary
Fields Modifier and Type Field Description static StringWEAVED_CLASS_CACHE_DIR-
Fields inherited from class org.aspectj.weaver.tools.cache.AbstractCacheBacking
logger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFileCacheBacking(File cacheDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose(InputStream in, File file)protected voidclose(OutputStream out, File file)protected voiddelete(File file)FilegetCacheDirectory()protected voidwriteClassBytes(String key, byte[] bytes)-
Methods inherited from class org.aspectj.weaver.tools.cache.AbstractCacheBacking
crc
-
-
-
-
Field Detail
-
WEAVED_CLASS_CACHE_DIR
public static final String WEAVED_CLASS_CACHE_DIR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractFileCacheBacking
protected AbstractFileCacheBacking(File cacheDirectory)
-
-
Method Detail
-
getCacheDirectory
public File getCacheDirectory()
-
writeClassBytes
protected void writeClassBytes(String key, byte[] bytes) throws Exception
- Throws:
Exception
-
delete
protected void delete(File file)
-
close
protected void close(OutputStream out, File file)
-
close
protected void close(InputStream in, File file)
-
-