Project

General

Profile

Task #1594

Story #1378: Adding new object formats shouldn't require buildout

Add an ObjectFormatCache to d1_libclient_java

Added by Chris Jones almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_libclient_java
Target version:
Start date:
2011-05-25
Due date:
% Done:

100%

Milestone:
Product Version:
*
Story Points:
Sprint:

Description

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.

History

#1 Updated by Chris Jones almost 10 years ago

  • Assignee set to Chris Jones

#2 Updated by Chris Jones almost 10 years ago

  • Category set to d1_libclient_java

#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.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)