1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
5
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
6
|
|
7
|
<!--
|
8
|
===============================================================
|
9
|
This is the configuration file for the
|
10
|
eu.etaxonomy.cdm.remote.view.PatternViewResolver
|
11
|
===============================================================
|
12
|
|
13
|
- bean names are ant style patterns
|
14
|
- the eu.etaxonomy.cdm.remote.view.PatternViewResolver
|
15
|
must be used to resolve patterns used as bean names
|
16
|
-->
|
17
|
|
18
|
<!-- entity services -->
|
19
|
<bean name="**/*" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
20
|
<property name="type" value="XML" />
|
21
|
<property name="jsonConfig" ref="jsonConfig" />
|
22
|
<!-- <property name="xsl" value="humane.xsl" /> -->
|
23
|
<property name="dataSourceProperties" ref="dataSourceProperties" />
|
24
|
</bean>
|
25
|
|
26
|
|
27
|
<bean name="**/name/* **/name" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
28
|
<property name="type" value="XML" />
|
29
|
<property name="xsl" value="name.xsl" />
|
30
|
<property name="jsonConfig" ref="jsonConfig" />
|
31
|
<property name="dataSourceProperties" ref="dataSourceProperties" />
|
32
|
</bean>
|
33
|
|
34
|
<!-- for statistics web service-->
|
35
|
<bean name="**/statistic/* **/statistic" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
36
|
<property name="type" value="XML" />
|
37
|
<property name="xsl" value="statistics.xsl" />
|
38
|
<property name="jsonConfig" ref="jsonConfig" />
|
39
|
<property name="dataSourceProperties" ref="dataSourceProperties" />
|
40
|
</bean>
|
41
|
|
42
|
<bean name="**/taxon/* **/taxon" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
43
|
<property name="type" value="XML" />
|
44
|
<property name="jsonConfig" ref="jsonConfig" />
|
45
|
<property name="dataSourceProperties" ref="dataSourceProperties" />
|
46
|
<property name="xsl" value="taxon.xsl" />
|
47
|
</bean>
|
48
|
|
49
|
<bean name="**/name_catalogue/* **/name_catalogue" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
50
|
<property name="type" value="XML" />
|
51
|
<property name="jsonConfig" ref="nameCatalogueJsonConfig" />
|
52
|
<property name="dataSourceProperties" ref="dataSourceProperties" />
|
53
|
</bean>
|
54
|
|
55
|
|
56
|
<!-- taxonomy service -->
|
57
|
<bean name="**/classification **/classification/* **/classification/**/*" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
58
|
<property name="type" value="XML" />
|
59
|
<!-- <property name="xsl" value="humane.xsl" /> -->
|
60
|
<property name="jsonConfig" ref="jsonConfigClassification" />
|
61
|
<property name="dataSourceProperties" ref="dataSourceProperties" />
|
62
|
</bean>
|
63
|
|
64
|
<!-- portal service -->
|
65
|
<bean name="**/portal/* **/portal/**/*" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
66
|
<property name="type" value="XML" />
|
67
|
<!-- <property name="xsl" value="humane.xsl" /> -->
|
68
|
<property name="jsonConfig" ref="jsonConfigPortal" />
|
69
|
<property name="dataSourceProperties" ref="dataSourceProperties" />
|
70
|
</bean>
|
71
|
|
72
|
<!-- management service
|
73
|
<bean name="/manager/*.xml /manager/**/*.xml" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
74
|
<property name="type" value="XML" />
|
75
|
</bean>
|
76
|
<bean name="/manager/*.json /manager/**/*.json" class="eu.etaxonomy.cdm.remote.view.JsonView">
|
77
|
</bean>
|
78
|
-->
|
79
|
</beans>
|