<?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"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  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
    http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc.xsd
    http://www.springframework.org/schema/tx
    http://www.springframework.org/schema/tx/spring-tx.xsd">

  <context:annotation-config />
  <context:component-scan base-package="at.gv.egiz.eaaf.utils.springboot.ajp"/>

<!--
  <context:annotation-config />
  <mvc:annotation-driven />
  <mvc:default-servlet-handler />
-->
    
  <mvc:interceptors>
    <bean
      class="at.asitplus.eidas.specific.connector.interceptor.WebFrontEndSecurityInterceptor" />
    <bean
      class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
      <property name="paramName" value="lang" />
    </bean>
  </mvc:interceptors>

  <bean id="springContextClosingHandler"
        class="at.asitplus.eidas.specific.connector.SpringContextCloseHandler" />

<!-- 
  <context:property-placeholder
    location="${eidas.ms.configuration}" />
  -->

  <beans profile="deprecatedConfig">
  <bean id="BasicMSSpecificNodeConfig"
    class="at.asitplus.eidas.specific.connector.config.BasicConfigurationProvider">
    <constructor-arg value="#{systemProperties['eidas.ms.configuration']}" />
  </bean>
  </beans>
  <beans profile="!deprecatedConfig">
    <bean id="springBootMsSpecificNodeConfig"
          class="at.asitplus.eidas.specific.connector.config.SpringBootBasicConfigurationProvider" />
          
  </beans>

</beans>