dafa987ddac5d42ba0bf3eecef20a8703f3249f6
[utils] /
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     <bean id="linkDir" class="java.io.File">
8         <constructor-arg>
9             <value>${org.wamblee.mythtv.linkdir}</value>
10         </constructor-arg>
11     </bean>
12
13     <bean id="monitorDir" class="java.io.File">
14         <constructor-arg>
15             <value>${org.wamblee.mythtv.monitordir}</value>
16         </constructor-arg>
17     </bean>
18
19     <bean id="fileFilter" class="org.apache.oro.io.AwkFilenameFilter">
20         <constructor-arg>
21             <value>^[a-zA-Z0-9-_]*.mpg$</value>
22         </constructor-arg>
23     </bean>
24
25
26     <bean id="org.wamblee.mythtv.RecordingDatabase" class="org.wamblee.mythtv.RecordingDatabase"
27         init-method="init">
28         <property name="entityManager">
29             <ref bean="entityManager"/>
30         </property>
31     </bean>
32
33     <bean id="org.wamblee.mythtv.LinkStructure"
34         parent="transactionRequiredTemplate">
35         <property name="target">
36             <bean class="org.wamblee.mythtv.LinkStructure">
37                 <constructor-arg>
38                     <value>${org.wamblee.mythtv.monitordir}</value>
39                 </constructor-arg>
40                 <constructor-arg>
41                     <ref local="linkDir"/>
42                 </constructor-arg>
43                 <constructor-arg>
44                     <ref local="org.wamblee.mythtv.RecordingDatabase"/>
45                 </constructor-arg>
46             </bean>
47         </property>
48     </bean>
49
50     <bean id="org.wamblee.io.DirectoryMonitor" class="org.wamblee.io.DirectoryMonitor">
51         <constructor-arg>
52             <ref local="monitorDir"/>
53         </constructor-arg>
54         <constructor-arg>
55             <ref local="fileFilter"/>
56         </constructor-arg>
57         <constructor-arg>
58             <ref local="org.wamblee.mythtv.LinkStructure"/>
59         </constructor-arg>
60     </bean>
61
62     <bean id="org.wamblee.mythtv.ScheduleConfig" class="org.wamblee.mythtv.ScheduleConfig">
63         <constructor-arg>
64             <value>${org.wamblee.mythtv.pollinterval}</value>
65         </constructor-arg>
66     </bean>
67
68 </beans>