<bean id="pool" class="cn.sh.online.comment.util.threadPool.Pool">
<property name="commentContentService">
<ref bean="commentContentService" />
</property>
<property name="timerKeywordFilter">
<ref bean="timerKeywordFilter" />
</property>
<property name="timerIpFilter">
<ref bean="timerIpFilter" />
</property>
<property name="timerBlackNameFilter">
<ref bean="timerBlackNameFilter" />
</property>
</bean>
<bean id="taskExcutor"
class="cn.sh.online.comment.util.threadPool.TaskExcutor">
<property name="pool">
<ref bean="pool" />
</property>
</bean>
<bean id="scheduledTask"
class="org.springframework.scheduling.timer.ScheduledTimerTask">
<property name="delay" value="30000" />
<property name="period" value="1000" />
<property name="timerTask" ref="taskExcutor" />
</bean>
<bean id="timerFactory"
class="org.springframework.scheduling.timer.TimerFactoryBean">
<property name="scheduledTimerTasks">
<list>
<ref bean="scheduledTask" />
</list>
</property>
</bean>