source: tapas/web/src/json/json-context.xml @ 403

Last change on this file since 403 was 403, checked in by vmipsl, 12 years ago

clean

File size: 3.2 KB
Line 
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 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
5
6    <bean id="jsonHelper" class="com.ether.JSONHelperImpl">
7        <property name="mapClassesForDeserialization">
8            <map>
9                <entry key="com.ether.tapas.Tapas">
10                    <map>
11                        <entry key="requests" value="com.ether.tapas.Request"/>
12                    </map>
13                </entry>
14                <entry key="com.ether.tapas.Request">
15                    <map>
16                        <entry key="preference" value="com.ether.tapas.Preference"/>
17                        <entry key="observation" value="com.ether.tapas.Observation"/>
18                        <entry key="atmosphere" value="com.ether.tapas.Atmosphere"/>
19                    </map>
20                </entry>
21                <entry key="com.ether.tapas.Preference">
22                    <map>
23                        <entry key="format" value="com.ether.Pair"/>
24                        <entry key="rayleighExtinction" value="com.ether.Pair"/>
25                        <entry key="h2oExtinction" value="com.ether.Pair"/>
26                        <entry key="o3Extinction" value="com.ether.Pair"/>
27                        <entry key="o2Extinction" value="com.ether.Pair"/>
28                        <entry key="co2Extinction" value="com.ether.Pair"/>
29                    </map>
30                </entry>
31
32                <entry key="com.ether.tapas.Observation">
33                    <map>
34                        <entry key="observatory" value="com.ether.tapas.Observatory"/>
35                        <entry key="los" value="com.ether.tapas.Los"/>
36                        <entry key="instrument" value="com.ether.tapas.Instrument"/>
37                    </map>
38                </entry>
39                <entry key="com.ether.tapas.Observatory">
40                    <map>
41                        <entry key="longitude" value="com.ether.tapas.Coordinate"/>
42                        <entry key="latitude" value="com.ether.tapas.Coordinate"/>
43                        <entry key="altitude" value="com.ether.tapas.Coordinate"/>
44                    </map>
45                </entry>
46                <entry key="com.ether.tapas.Los">
47                    <map>
48                        <entry key="zenithAngle" value="com.ether.tapas.Coordinate"/>
49                    </map>
50                </entry>
51                <entry key="com.ether.tapas.Instrument">
52                    <map>
53                        <entry key="spectralChoice" value="com.ether.Pair"/>
54                        <entry key="ilsfChoice" value="com.ether.Pair"/>
55                        <entry key="resolvingPower" value="com.ether.Pair"/>
56                        <entry key="samplingRatio" value="com.ether.Pair"/>
57                    </map>
58                </entry>
59                <entry key="com.ether.tapas.Atmosphere">
60                    <map>
61                        <entry key="reference" value="com.ether.Pair"/>
62                    </map>
63                </entry>
64            </map>
65        </property>
66    </bean>
67</beans>
Note: See TracBrowser for help on using the repository browser.