/
service-ome.api.IConfig.xml
78 lines (64 loc) · 2.77 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# $Id$
#
# Copyright 2006 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>
<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>
<!--
"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>