<?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:aop="http://www.springframework.org/schema/aop"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">

    <bean id="propertyFileCalendarAdminService" class="com.armedia.acm.calendar.config.service.PropertyFileCalendarAdminService">
        <property name="encryptablePropertyUtils" ref="acmEncryptablePropertyUtils"/>
        <property name="calendarConfig" ref="calendarConfig"/>
        <property name="configurationPropertyService" ref="configurationPropertyService"/>
    </bean>

    <bean id="scheduledCalendarPurger" class="com.armedia.acm.calendar.service.AcmScheduledCalendarPurger">
        <property name="calendarAdminService" ref="propertyFileCalendarAdminService"/>
        <property name="calendarService" ref="calendarServiceProvider"/>
    </bean>

    <bean id="purgeCalendarJobDescriptor" class="com.armedia.acm.calendar.service.PurgeCalendarJobDescriptor" parent="acmJobDescriptor">
        <property name="calendarPurger" ref="scheduledCalendarPurger"/>
    </bean>

    <bean id="calendarConfig" class="com.armedia.acm.calendar.config.model.CalendarConfig" scope="refresh">
        <property name="objectConverter" ref="objectConverter"/>
        <aop:scoped-proxy/>
    </bean>

</beans>