<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns="http://www.springframework.org/schema/beans"
	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:META-INF/cxf/cxf.xml" />
	
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml" />
	<import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml" />
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-registrator.xml" />
	<import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml" />
	<import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml" />
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml" />
	<import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml" />

	<import resource="classpath*:/eu/dnetlib/data/search/solr/springContext-searchService-solr.xml" />
	<import resource="classpath*:/eu/dnetlib/data/search/springContext-transformation.xml" />
	<import resource="classpath*:/eu/dnetlib/data/search/springContext-searchService.xml" />

	<!--<import resource="classpath*:/eu/dnetlib/data/statsmanager/springContext-statsManager.xml" />-->

	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<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>
			</bean>
		</property>
		<property name="locations">
			<list>
				<value>classpath*:/eu/**/applicationContext*.properties</value>
				<value>classpath*:/eu/dnetlib/applicationContext-defaultProperties.properties</value>
				<value>classpath*:/gr/**/springContext-commons.properties</value>
				<value>classpath*:/gr/**/springContext-registrator.properties</value> 
				<value>classpath*:/gr/**/springContext-locators.properties</value>
				<value>classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.properties</value>
				<value>classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.properties</value>

				<value>classpath*:/eu/**/springContext-searchService-solr.properties</value>
				<value>classpath*:/eu/**/springContext-searchService.properties</value>
				<value>classpath*:/eu/**/springContext-transformation.properties</value>

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

	<context:annotation-config />
	<import resource="./cxf.xml" />
</beans>
