org.aspectj.weaver.tools.cache
Class AbstractFileCacheBacking

java.lang.Object
  extended by org.aspectj.weaver.tools.cache.AbstractCacheBacking
      extended by 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
 
Fields inherited from class org.aspectj.weaver.tools.cache.AbstractCacheBacking
logger
 
Constructor Summary
protected AbstractFileCacheBacking(java.io.File cacheDirectory)
           
 
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 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, getKeys, put, remove
 

Field Detail

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
Constructor Detail

AbstractFileCacheBacking

protected AbstractFileCacheBacking(java.io.File cacheDirectory)
Method Detail

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)