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

  <!-- Configurer that replaces ${...} placeholders with values from a properties file -->
  <bean id="defaultPropertyConfigurer"
        class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
      <list>
        <value>classpath:config.defaults.properties</value>
      </list>
    </property>
    <property name="order" value="1"/>
  </bean>
  <bean id="externalPropertyConfigurer"
        class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
      <list>
        <value>classpath:config.properties</value>
        <value>file:/www/sxweb/server/openidcards/icdemo/conf/config.properties</value>
      </list>
    </property>
    <property name="ignoreResourceNotFound" value="true"/>
    <property name="ignoreUnresolvablePlaceholders" value="true"/>
    <property name="order" value="0"/>
  </bean>

  <bean id="urlMapper"
        class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    <property name="mappings">
      <value>
        /index.jsp=indexController
      </value>
    </property>
  </bean>

  <bean id="indexController" class="net.sxip.openidcards.icdemo.web.IndexController">
    <property name="supportedMethods" value="GET,POST"/>
    <property name="loginView" value="login"/>
    <property name="postView" value="post"/>
    <property name="homeView" value="home"/>
    <property name="errorView" value="error"/>
    <property name="consumerManager" ref="consumerManager"/>
    <property name="baseUrl" value="${base.url}"/>
    <property name="stsUrl" value="${sts.url}"/>
    <property name="axUrl" value="${ax.url}"/>

  </bean>

  <bean id="viewResolver"
        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix" value="/WEB-INF/jsp/"/>
    <property name="suffix" value=".jsp"/>
  </bean>

</beans>