<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<!--
  - Server application context definition for "springapp" DispatcherServlet.
  -->

<beans>
    <import resource="classpath:springapp.xml"/>

    <import resource="project-config.xml"/>
    <import resource="project-services.xml"/>
    <import resource="project-managers.xml"/>
    <import resource="project-security.xml"/>
    <import resource="project-spring.xml"/>

    <!-- temporary workaround; allow the studio (and only the studio) to serve
		SMDs through the SmdController.  Delete this, eventually. MAV-23.
		When I do delet eit, move json to services, maybe: /services/*.json. -->
    <bean id="urlMapping"
        class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="mappings">
            <value>
                /**/*.json=agJSONController
				/**/*.download=agFileDownloadController
				/**/*.upload=agFileUploadController
            </value>
        </property>
    </bean>
</beans>

