Andy Victors
05/23/2019, 12:30 PMDataFetcher
and `DataStorage`classes, for getting data from remote to storing it, well, into the storage object
• The list of DataFetchers
is global, but mutable using `frozenCopyOnWriteList<>`from Stately
lib => therefore all Fetchers are frozen
• To tell a Fetcher which storage he needs to store the date into, I pass the Storage object in constructor.
• PROBLEM: since Storage is then in the same object graph as the Fetcher, Storage becomes frozen. But it's counter-goal for a storage object.
There should be a pattern for that, isn't it?kpgalligan
05/23/2019, 3:10 PMkpgalligan
05/23/2019, 3:11 PMkpgalligan
05/23/2019, 3:12 PMkpgalligan
05/23/2019, 3:13 PMkpgalligan
05/23/2019, 3:14 PMkpgalligan
05/23/2019, 3:17 PMkpgalligan
05/23/2019, 3:36 PMkpgalligan
05/23/2019, 3:38 PMAndy Victors
05/23/2019, 4:33 PMkpgalligan
05/23/2019, 4:34 PMAndy Victors
05/23/2019, 4:35 PMkpgalligan
05/23/2019, 4:35 PMkpgalligan
05/23/2019, 4:37 PMkpgalligan
05/23/2019, 4:38 PMkpgalligan
05/23/2019, 4:39 PMAndy Victors
05/23/2019, 4:43 PMkpgalligan
05/23/2019, 4:44 PM