Story #1378: Adding new object formats shouldn't require buildout
Add an ObjectFormatCache to d1_libclient_java
We decided that the object format lookup functionality should be moved into d1_libclient_java. The ObjectFormatCache will wrap the ObjectFormatList that comes either from a CN call to /formats, or from a fallback call to ObjectFormatDiskCache to get a minimal list. The ObjectFormatCache will index the ObjectFormatList as a hash of ObjectFormatIdentifier/ObjectFormat pairs.
#3 Updated by Chris Jones almost 10 years ago
- Status changed from In Progress to Closed
The ObjectFormatCache in d1_libclient_java now provides static methods to listFormats() and getFormat(fmtid), and getFormat(fmtidStr). The format list will either come from the CN /formats call, or fall back to the on-disk cache version.