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
Useful "common" functionality for caching to files
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault property used to specify a default weaving cache dir locationFields inherited from class AbstractCacheBacking
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose(InputStream in, File file) protected voidclose(OutputStream out, File file) protected voidprotected voidwriteClassBytes(String key, byte[] bytes) Methods inherited from class AbstractCacheBacking
crcModifier and TypeMethodDescriptionstatic final longcrc(byte[] bytes) Calculates CRC32 on the provided bytesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CacheBacking
clear, get, getKeys, put, removeModifier and TypeMethodDescriptionvoidclear()Clear the entire cacheget(CachedClassReference ref, byte[] originalBytes) Get a cache entryString[]Return a list of keys which match the given regex.voidput(CachedClassEntry entry, byte[] originalBytes) Put an entry in the cachevoidRemove an entry from the cache
-
Field Details
-
WEAVED_CLASS_CACHE_DIR
Default property used to specify a default weaving cache dir location- See Also:
-
-
Constructor Details
-
AbstractFileCacheBacking
-
-
Method Details
-
getCacheDirectory
-
writeClassBytes
-
delete
-
close
-
close
-