-
Notifications
You must be signed in to change notification settings - Fork 34
Memoized Value refactor proposal
andyberry88 edited this page Oct 14, 2014
·
2 revisions
The Memoized value and file modification service architecture needs a rethink to simplify it. Below is the proposed interface for the new approach.

Overview:
-
FileModificationRegistrywill now control access to last modified information -
MemoizedValuedoesn't change much at all - The memoization logic will be removed from
FileInfo. This class will be renamed toMemoizedFile, extendjava.io.Fileand cache the reponses from the superclass by usingMemoizedValue - We will remove the need for
FileModificationServices. This will be replaced by a single (optional) thread that will detect changes on disk andupdateLastModifiedvalues in theFileModificationRegistry