NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1890 (closed task: moved)

Opened 2013-05-25T10:03:12-05:00

Last modified 2013-06-13T13:16:04-05:00

Add StashService to SciJava Common

Reported by: curtis Owned by: curtis
Priority: major Milestone: imagej2-b8-analysis
Component: SciJava Common Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1923

Description

We need a general-purpose way to associate metadata with objects. (SciJava Common's ObjectService is not quite appropriate: it stores objects onto lists associated with a type hierarchy.)

The StashService API will take a list of objects to use as a (weak) key, and a value to associate with that list of objects. So it is just a thread-safe HashMap which takes care of aggregating keys into a single StashKey object with WeakReferences to the key objects.

Once we have this service, we can use it for extensible metadata annotations of arbitrary data objects. For example, we can save derived data such as min/max values, histograms, statistics, measurements and more.

Change History

comment:1 Changed 2013-06-13T13:13:25-05:00 by bdezonia

  • Blocking 1923 added

comment:2 Changed 2013-06-13T13:16:04-05:00 by bdezonia

See also #1883

comment:3 Changed 2014-05-01T12:42:04-05:00 by curtis

  • Status changed from new to closed
  • Resolution set to moved