]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/modules/org.argeo.jackrabbit.webapp/WEB-INF/jcr-manager-servlet.xml
Restructure Webdav and JCR servlets
[lgpl/argeo-commons.git] / server / modules / org.argeo.jackrabbit.webapp / WEB-INF / jcr-manager-servlet.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
4 xmlns:context="http://www.springframework.org/schema/context"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
8 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
9
10 <context:component-scan base-package="org.argeo.jcr.mvc" />
11
12 <bean name="**" class="org.argeo.jcr.mvc.JcrManagerController">
13 </bean>
14
15 <bean id="viewResolver" class="org.argeo.server.mvc.SerializingViewResolver">
16 <property name="serializer" ref="serverMapper" />
17 </bean>
18
19 <bean id="serverMapper" class="org.argeo.server.json.JsonServerMapper">
20 </bean>
21
22 <bean class="org.argeo.server.mvc.DefaultHandlerExceptionResolver" />
23
24 <bean id="handlerMapping"
25 class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
26 <property name="interceptors">
27 <list>
28 <ref bean="osivInterceptor" />
29 </list>
30 </property>
31 </bean>
32
33 </beans>