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
Useful "common" functionality for caching to files
Field Summary |
static java.lang.String |
WEAVED_CLASS_CACHE_DIR
Default property used to specify a default weaving cache dir location |
Method Summary |
protected void |
close(java.io.InputStream in,
java.io.File file)
|
protected void |
close(java.io.OutputStream out,
java.io.File file)
|
protected void |
delete(java.io.File file)
|
java.io.File |
getCacheDirectory()
|
protected void |
writeClassBytes(java.lang.String key,
byte[] bytes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WEAVED_CLASS_CACHE_DIR
public static final java.lang.String WEAVED_CLASS_CACHE_DIR
- Default property used to specify a default weaving cache dir location
- See Also:
- Constant Field Values
AbstractFileCacheBacking
protected AbstractFileCacheBacking(java.io.File cacheDirectory)
getCacheDirectory
public java.io.File getCacheDirectory()
writeClassBytes
protected void writeClassBytes(java.lang.String key,
byte[] bytes)
throws java.lang.Exception
- Throws:
java.lang.Exception
delete
protected void delete(java.io.File file)
close
protected void close(java.io.OutputStream out,
java.io.File file)
close
protected void close(java.io.InputStream in,
java.io.File file)