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

    <import resource="classpath*:/eu/**/applicationContext-goldoa-service.xml" />
    <import resource="classpath*:/eu/**/applicationContext-goldoa-portal.xml" />

    <bean id="cascadingPropertyLoader" class="eu.dnetlib.utils.CascadingPropertyLoader">
        <property name="order" value="2" />
        <property name="ignoreUnresolvablePlaceholders" value="true" />
        <property name="properties">
            <bean class="eu.dnetlib.conf.WebappContextProperyFactory">
                <property name="propertyFetcher">
                    <bean class="eu.dnetlib.conf.PropertyFetcher" >
                        <property name="unchangedHostname" value="true" />
                    </bean>
                </property>
            </bean>
        </property>
        <property name="locations">
            <list>
                <value>classpath*:/eu/**/applicationContext-goldoa-service.properties</value>
                <value>classpath*:/eu/**/applicationContext-goldoa-portal.properties</value>

                <value>classpath*:/dnet-site-override.properties</value>
                <value>classpath*:/dnet-dnet-goldoa-portal-wizard.properties</value>
                <value>classpath*:/dnet-dnet-goldoa-portal-override.properties</value>

                <value>classpath*:/uoa-override.properties</value>
                <value>classpath*:/dnet-override.properties</value>
                <value>classpath*:dnet-force-override.properties</value>
            </list>
        </property>
    </bean>

    <context:annotation-config />
</beans>
