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