-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathweather.xml.wm
More file actions
73 lines (64 loc) · 1.86 KB
/
weather.xml.wm
File metadata and controls
73 lines (64 loc) · 1.86 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>jweatherstation.properties</value>
</property>
</bean>
<bean id="weatherMonitor"
class="org.tom.weather.comm.Main">
<property name="station">
<ref bean="wm2"/>
</property>
<property name="checkArchive" value="true"/>
</bean>
<bean id="wsDataPoster"
class="org.tom.weather.posting.WebServiceDataPosterImpl">
<property name="password">
<value>${ws.password}</value>
</property>
<property name="location">
<value>${ws.location}</value>
</property>
</bean>
<bean id="wsDataUploader"
class="org.tom.weather.upload.ws.DataUploaderImpl">
<property name="password">
<value>${ws.password}</value>
</property>
<property name="location">
<value>${ws.location}</value>
</property>
</bean>
<bean id="wm2"
class="org.tom.weather.comm.WeatherMonitor2">
<!-- this is either a port or an IP address -
try to parse it as an IP address first -->
<constructor-arg>
<value>${portName}</value>
</constructor-arg>
<!-- this could be a port number if the portName is a valid IP address -->
<constructor-arg>
<value>${baudRate}</value>
</constructor-arg>
<constructor-arg>
<value>${rainGauge}</value>
</constructor-arg>
<property name="uploaderList">
<list>
<!-- <ref bean="dataUploader"/> -->
<ref bean="wsDataUploader"/>
</list>
</property>
<property name="posterList">
<list>
<ref bean="wsDataPoster"/>
</list>
</property>
<property name="location">
<value>${ws.location}</value>
</property>
</bean>
</beans>