-
Notifications
You must be signed in to change notification settings - Fork 14
/
service-ome.api.IConfig.xml
92 lines (76 loc) · 3.52 KB
/
service-ome.api.IConfig.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8"?>
<!--
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright 2006-2018 University of Dundee. All rights reserved.
# Use is subject to license terms supplied in LICENSE.txt
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
<!--
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Written by: Josh Moore <josh.moore@gmx.de>
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
<!--
Developer notes:
===============
The name of this file is not critical but convention. In fact, you do not even
need to create a separate file for your service, but can add the definitions
to other spring files. To see what files Spring considers, look at the
resources/beanRefContext.xml file. This file is covered by the value:
classpath*:service-*.xml
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<description>
Service implementation ("internal-") and wrapper ("managed-") for the
ome.api.IConfig interface.
managed-ome.api.IConfig - This is for remoting and should only be apply
interceptors to the "internal" version below. essentially ignore.
internal-ome.api.IConfig - This is the bean that needs to have items
injected. Used server side. If not available, everyone has to go
through the levels of interception
</description>
<bean parent="level2" id="internal-ome.api.IConfig" class="ome.logic.ConfigImpl">
<description>
The implementation of our interface. Provided with a JDBC template for
accessing the database time. Safe to use ONLY from within another service!
</description>
<property name="databaseIdentity" ref="databaseIdentity"/>
<property name="sqlAction" ref="simpleSqlAction"/>
<property name="preferenceContext" ref="preferenceContext"/>
<property name="currentDetails" ref="currentDetails"/>
</bean>
<bean id="managed-ome.api.IConfig" parent="managedService">
<description>
An AOP-wrapped proxy for our implementation. Enforces all server policies.
</description>
<property name="proxyInterfaces" value="ome.api.IConfig"/>
<property name="target" ref="internal-ome.api.IConfig"/>
</bean>
<bean class="ome.services.util.ReadOnlyConfigInit" lazy-init="false">
<description>
Includes among the configuration keys information about the read-only status as determined at run-time during start-up.
</description>
<constructor-arg ref="internal-ome.api.IConfig"/>
<constructor-arg ref="readOnlyStatus"/>
</bean>
<bean class="ome.services.util.BioFormatsConfigInit" lazy-init="false">
<description>
Includes among the configuration keys Bio-Formats version metadata as determined at run-time during start-up.
</description>
<constructor-arg ref="internal-ome.api.IConfig"/>
</bean>
<!--
"Private" resources
=======================================================================
These are not really private in the sense that they are scoped and truly
inaccessible, but more by convention that other services should probably
not access them since they may change at any time, e.g.:
<bean id="ome.api.IConfig:configDefaults" class="java.util.HashMap">
<property name="db.hash" value="CAFEBABE"/>
</bean>
-->
</beans>