Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #10542 (closed)

Opened 9 years ago

Closed 9 years ago

Convert codecs to scijava plugins

Reported by: mhiner-x Owned by: mhiner-x
Priority: major Milestone: Unscheduled
Component: Bio-Formats Version: 4.4.8
Keywords: n.a. Cc: jamoore, mlinkert, crueden-x
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.


All the codecs in loci.formats.codec will be converted to use the scijava-common context for service managing. Since this will cause them to be contextual, each codec should extend SortablePlugin? and be properly annotated.

This will replace the current ServiceFactory implementation, allowing for consolidation of service loading and should reduce potentially unnecessary dependency/class loading checks. The context has error handling surrounding service loading and instantiation, so if a requested service fails to initialize or is not present, it will simply be null when requested (and the error output logged appropriately).

Stubs for the services themselves likely still need to be present for compile-time safety. But they should perhaps be flagged as "Provided" in the Maven pom, as they should no longer be necessary at run-time.

This will also obviate the need for class dependency checks in the service implementations, because of the context-level error handling and reporting.

Note that this will cause services to be loaded on context initialization, instead of lazily by the codec.

Change History (1)

comment:1 Changed 9 years ago by mhiner-x

  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to 4.4.8

Completed with CodecService in current SCIFIO.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66093 sec.)

We're Hiring!