Class SafeAnalysisCache
java.lang.Object
dev.archunitjava.importer.SafeAnalysisCache
Bounded, content-addressed analysis cache with a fixed binary envelope.
Payloads are opaque bytes. This class never uses Java serialization, reflection, class loading, or type names from cache data. Every hit validates the key and payload digest before bytes are returned. Invalid entries are replaced atomically while holding process and file locks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadOrCompute(AnalysisCacheKey key, AnalysisPayloadSupplier supplier) root()
-
Constructor Details
-
SafeAnalysisCache
- Throws:
IOException
-
-
Method Details
-
root
-
entryPath
-
loadOrCompute
public AnalysisCacheResult loadOrCompute(AnalysisCacheKey key, AnalysisPayloadSupplier supplier) throws IOException - Throws:
IOException
-