• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Last Change
  • Annotate
  • Revision Log

root/trunk/components/blitz/src/ome/services/blitz/impl/ConfigI.java

Revision 2720, 1.9 kB (checked in by jmoore, 3 months ago)

ticket:1036 - Fixes mapping issue

  • Introduced IceMapper.mapReturnValue method
  • Split BlitzExecutor methods into raw-args and mapped-args
  • When manual control is needed, use mapped-args (see SessionI)
  • Removed ServantHelper
  • IceMethodInvoker now throws rather than returning exceptions
  • IceMethodInvoker now caches method info statically

Works well, but the constant replacing of servants is causing an
issue and must now be fixed.

Line 
1/*
2 *   $Id$
3 *
4 *   Copyright 2008 Glencoe Software, Inc. All rights reserved.
5 *   Use is subject to license terms supplied in LICENSE.txt
6 */
7
8package ome.services.blitz.impl;
9
10// Java imports
11import ome.api.IConfig;
12import ome.services.blitz.util.BlitzExecutor;
13import omero.ServerError;
14import omero.api.AMD_IConfig_getConfigValue;
15import omero.api.AMD_IConfig_getDatabaseTime;
16import omero.api.AMD_IConfig_getServerTime;
17import omero.api.AMD_IConfig_getVersion;
18import omero.api.AMD_IConfig_setConfigValue;
19import omero.api._IConfigOperations;
20import Ice.Current;
21
22/**
23 * Implementation of the IConfig service.
24 *
25 * @author Josh Moore, josh at glencoesoftware.com
26 * @since 3.0-Beta4
27 * @see ome.api.IConfig
28 */
29public class ConfigI extends AbstractAmdServant implements _IConfigOperations {
30
31    public ConfigI(IConfig service, BlitzExecutor be) {
32        super(service, be);
33    }
34
35    // Interface methods
36    // =========================================================================
37
38    public void getConfigValue_async(AMD_IConfig_getConfigValue __cb,
39            String key, Current __current) throws ServerError {
40        callInvokerOnRawArgs(__cb, __current, key);
41    }
42
43    public void getDatabaseTime_async(AMD_IConfig_getDatabaseTime __cb,
44            Current __current) throws ServerError {
45        callInvokerOnRawArgs(__cb, __current);
46    }
47
48    public void getServerTime_async(AMD_IConfig_getServerTime __cb,
49            Current __current) throws ServerError {
50        callInvokerOnRawArgs(__cb, __current);
51    }
52
53    public void getVersion_async(AMD_IConfig_getVersion __cb, Current __current)
54            throws ServerError {
55        callInvokerOnRawArgs(__cb, __current);
56    }
57
58    public void setConfigValue_async(AMD_IConfig_setConfigValue __cb,
59            String key, String value, Current __current) throws ServerError {
60        callInvokerOnRawArgs(__cb, __current, key, value);
61    }
62
63}
Note: See TracBrowser for help on using the browser.

Download in other formats:

  • Plain Text
  • Original Format

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/