<?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 classpath:org/springframework/beans/spring-beans.xsd http://www.springframework.org/schema/context classpath:org/springframework/context/spring-context.xsd">

    <context:annotation-config/>
    <bean class="org.dllearner.configuration.spring.ComponentInitializationBeanPostProcessor"/>

    <!--Register Custom Property Editors - for going from Strings to Objects-->
    <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
        <property name="propertyEditorRegistrars">
            <list>
                <ref bean="customPropertyEditorRegistrar"/>
            </list>
        </property>
    </bean>

    <bean id="customPropertyEditorRegistrar"
          class="org.dllearner.configuration.spring.CustomPropertyEditorRegistrar"/>

    <!--Register custom conversion services for converting types to type.-->
    <bean id="conversionService"
          class="org.springframework.context.support.ConversionServiceFactoryBean">
        <property name="converters">
            <set>
                <bean class="org.dllearner.utilities.datastructures.MapToStringTupleListConverter"/>
            </set>
        </property>
    </bean>
</beans>