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">
7 <bean id="linkDir" class="java.io.File">
9 <value>${org.wamblee.mythtv.linkdir}</value>
13 <bean id="monitorDir" class="java.io.File">
15 <value>${org.wamblee.mythtv.monitordir}</value>
19 <bean id="fileFilter" class="org.apache.oro.io.AwkFilenameFilter">
21 <value>^[a-zA-Z0-9-_]*.mpg$</value>
26 <bean id="org.wamblee.mythtv.RecordingDatabase" class="org.wamblee.mythtv.RecordingDatabase"
28 <property name="entityManager">
29 <ref bean="entityManager"/>
33 <bean id="org.wamblee.mythtv.LinkStructure"
34 parent="transactionRequiredTemplate">
35 <property name="target">
36 <bean class="org.wamblee.mythtv.LinkStructure">
38 <value>${org.wamblee.mythtv.monitordir}</value>
41 <ref local="linkDir"/>
44 <ref local="org.wamblee.mythtv.RecordingDatabase"/>
50 <bean id="org.wamblee.io.DirectoryMonitor" class="org.wamblee.io.DirectoryMonitor">
52 <ref local="monitorDir"/>
55 <ref local="fileFilter"/>
58 <ref local="org.wamblee.mythtv.LinkStructure"/>
62 <bean id="org.wamblee.mythtv.ScheduleConfig" class="org.wamblee.mythtv.ScheduleConfig">
64 <value>${org.wamblee.mythtv.pollinterval}</value>