<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
        http://www.springframework.org/schema/beans     
        http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
        http://www.springframework.org/schema/context 
        http://www.springframework.org/schema/context/spring-context-3.1.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
	
	<context:component-scan base-package="com.mason.server.controller"  />
 
	<mvc:annotation-driven />
	
	<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
	  <property name="mediaTypes">
	    <map>
	      <entry key="html" value="text/html"/>
	      <entry key="json" value="application/json"/>
	    </map>
	  </property>
	  <property name="viewResolvers">
	    <list>
	      <bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
	        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
	        <property name="prefix" value="/WEB-CONTENT/"/>
	        <property name="suffix" value=".jsp"/>
	      </bean>
	    </list>
	  </property>
	  <property name="defaultViews">
	    <list>
	      <bean class="org.springframework.web.servlet.view.json.MappingJacksonJsonView">
                <property name="objectMapper">
                    <ref bean="JacksonObjectMapper" />
                </property>
	      </bean>
	    </list>
	  </property>
	</bean>
	
	<bean id="projectAccessController" class="com.mason.server.controller.json.ProjectAccessControllerJson" scope="singleton"/>
	
	<bean id="JacksonObjectMapper" class="org.codehaus.jackson.map.ObjectMapper" />

</beans>