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 Details

    • WEAVED_CLASS_CACHE_DIR

      public static final String WEAVED_CLASS_CACHE_DIR
      Default property used to specify a default weaving cache dir location
      See Also:
      Constant Field Values
  • Constructor Details

    • AbstractFileCacheBacking

      protected AbstractFileCacheBacking(File cacheDirectory)
  • Method Details

    • 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)