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 #6340 (closed)

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

chgrp: rework ObjectFactories

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.3.2
Component: Services Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-08-04 (2)

Description

In order to implement #3845 (new API using method objects) the various ObjectFactory support on the server will need to be reworked in order to pick up various servants. Otherwise, a long list of "servant instanceof A" will be necessary to properly handle new methods.

Change History (7)

comment:1 Changed 13 years ago by jmoore

  • Status changed from new to accepted

comment:2 Changed 13 years ago by jmoore

  • Owner jmoore deleted
  • Status changed from accepted to new

comment:3 Changed 13 years ago by jmoore

  • Owner set to jmoore

comment:4 Changed 13 years ago by jmoore

  • Status changed from new to accepted

comment:5 Changed 13 years ago by jmoore

Current solution is a ome.services.blitz.util.ObjectFactoryRegistry abstract class which can be subclassed to easily inject object factory instances into the Ice.Communicator. This is done for the official registries in blitz/resources/ome/services/objectfactories.xml. Any third-party code which would like to add their own servant implementations can either subclass OFRegistry, or can simple add a bean which uses the Ice.Communicator bean directly. No ordering support is planned therefore implementations will want to be careful of adding already existing servant IDs.

comment:6 Changed 13 years ago by jmoore

  • Remaining Time changed from 0.5 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

Work completed in branch.

comment:7 Changed 12 years ago by jmoore <josh@…>

(In [10758388d038605784103ebc9fad5a0b3dd9f573/ome.git] on branch develop) Rework object factories in OmeroJava (Fix #6340)

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.75469 sec.)

We're Hiring!