• 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/server/resources/ome/services/service-ome.api.IConfig.xml

Revision 2640, 2.6 kB (checked in by jmoore, 5 months ago)

Renaming internl: and managed: to internal- and managed- for XML validation

  • Property svn:keywords set to Id
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
3<!--
4#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5#
6# $Id$
7#
8# Copyright 2006 University of Dundee. All rights reserved.
9# Use is subject to license terms supplied in LICENSE.txt
10#
11#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12-->
13
14<!--
15#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16# Written by:  Josh Moore <josh.moore@gmx.de>
17#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18-->
19
20<!--
21  Developer notes:
22  ===============
23  The name of this file is not critical but convention. In fact, you do not even
24  need to create a separate file for your service, but can add the definitions
25  to other spring files. To see what files Spring considers, look at the
26  resources/beanRefContext.xml file. This file is covered by the value:
27
28    classpath*:service-*.xml
29 
30-->
31
32<beans> 
33
34  <description>
35  Service implementation ("internal-") and wrapper ("managed-") for the
36  ome.api.IConfig interface.
37
38  managed-ome.api.IConfig - This is for remoting and should only be apply
39    interceptors to the "internal" version below. essentially ignore.
40  internal-ome.api.IConfig - This is the bean that needs to have items
41    injected. Used server side. If not available, everyone has to go
42    through the levels of interception
43
44  </description>
45
46  <bean parent="level2" id="internal-ome.api.IConfig" class="ome.logic.ConfigImpl">
47    <description>
48    The implementation of our interface. Provided with a JDBC template for
49    accessing the database time. Safe to use ONLY from within another service!
50    </description>
51    <property name="jdbcTemplate" ref="simpleJdbcTemplate"/>
52  </bean>
53 
54  <bean id="managed-ome.api.IConfig" parent="managedService">
55    <description>
56    An AOP-wrapped proxy for our implementation. Enforces all server policies.
57    </description>
58    <property name="proxyInterfaces" value="ome.api.IConfig"/>
59    <property name="target" ref="internal-ome.api.IConfig"/>
60  </bean>
61 
62<!--
63  "Private" resources
64  =======================================================================
65  These are not really private in the sense that they are scoped and truly
66  inaccessible, but more by convention that other services should probably
67  not access them since they may change at any time, e.g.:
68 
69  <bean id="ome.api.IConfig:configDefaults" class="java.util.HashMap">
70    <property name="db.hash" value="CAFEBABE"/>
71  </bean>
72
73--> 
74 
75</beans>
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/