2011-12-11 15:02:17 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
|
|
|
<context:component-scan base-package="fr.imirhil.april.hebdobot" />
|
|
|
|
|
|
|
|
<bean id="properties"
|
|
|
|
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
|
|
|
|
<property name="properties">
|
|
|
|
<props>
|
|
|
|
<prop key="file.suffix">revue.txt</prop>
|
|
|
|
</props>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="userAliases" class="fr.imirhil.april.hebdobot.xml.UserAlias">
|
|
|
|
<constructor-arg name="source" value="file:users.xml" />
|
|
|
|
</bean>
|
|
|
|
<bean id="bot" class="fr.imirhil.april.hebdobot.irc.Bot"
|
|
|
|
init-method="init" destroy-method="close">
|
|
|
|
<constructor-arg name="host" value="irc.freenode.org" />
|
|
|
|
<constructor-arg name="port" value="6667" />
|
|
|
|
<constructor-arg name="name" value="Hebdobot" />
|
|
|
|
<constructor-arg name="channel" value="#april" />
|
|
|
|
</bean>
|
|
|
|
<bean id="pastebin" class="fr.imirhil.april.hebdobot.pastebin.PastebinClient">
|
|
|
|
<constructor-arg name="apiKey"
|
|
|
|
value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
|
|
|
|
</bean>
|
|
|
|
<bean id="identi.ca" class="fr.imirhil.april.hebdobot.statusnet.IdentiCaClient">
|
|
|
|
<constructor-arg name="apiKey"
|
|
|
|
value="ef8ad74a5ab4a92138ff397763776a14" />
|
|
|
|
<constructor-arg name="apiSecret"
|
|
|
|
value="70400fa3b7c1aebba6d72b46399f45c7" />
|
|
|
|
<constructor-arg name="tokenKey"
|
|
|
|
value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
|
|
|
|
<constructor-arg name="tokenSecret"
|
|
|
|
value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
|
|
|
|
</bean>
|
|
|
|
|
2012-02-24 14:08:07 +01:00
|
|
|
<bean id="job" class="fr.imirhil.april.hebdobot.Job">
|
|
|
|
<property name="statusNetMessage"
|
|
|
|
value="Revue hebdomadaire !april dans %dmin sur irc://irc.freenode.org/april ou http://webchat.freenode.net/?channels=april" />
|
|
|
|
<property name="ircMessage" value="Revue hebdomadaire dans %dmin" />
|
|
|
|
</bean>
|
2011-12-11 15:02:17 +01:00
|
|
|
|
|
|
|
<bean id="trigger30" class="org.springframework.scheduling.quartz.CronTriggerBean">
|
|
|
|
<property name="jobDetail">
|
|
|
|
<bean
|
|
|
|
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
|
|
|
|
<property name="targetObject" ref="job" />
|
|
|
|
<property name="targetMethod" value="at30" />
|
|
|
|
</bean>
|
|
|
|
</property>
|
|
|
|
<property name="cronExpression" value="* 30 11 ? * FRI" />
|
|
|
|
</bean>
|
|
|
|
<bean id="trigger45" class="org.springframework.scheduling.quartz.CronTriggerBean">
|
|
|
|
<property name="jobDetail">
|
|
|
|
<bean
|
|
|
|
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
|
|
|
|
<property name="targetObject" ref="job" />
|
|
|
|
<property name="targetMethod" value="at45" />
|
|
|
|
</bean>
|
|
|
|
</property>
|
|
|
|
<property name="cronExpression" value="0 45 11 ? * FRI" />
|
|
|
|
</bean>
|
|
|
|
<bean id="trigger55" class="org.springframework.scheduling.quartz.CronTriggerBean">
|
|
|
|
<property name="jobDetail">
|
|
|
|
<bean
|
|
|
|
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
|
|
|
|
<property name="targetObject" ref="job" />
|
|
|
|
<property name="targetMethod" value="at55" />
|
|
|
|
</bean>
|
|
|
|
</property>
|
|
|
|
<property name="cronExpression" value="0 55 11 ? * FRI" />
|
|
|
|
</bean>
|
|
|
|
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
|
|
|
|
<property name="triggers">
|
|
|
|
<list>
|
|
|
|
<ref bean="trigger30" />
|
|
|
|
<ref bean="trigger45" />
|
|
|
|
<ref bean="trigger55" />
|
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
</beans>
|