]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/modules/org.argeo.jackrabbit.webapp/WEB-INF/xmlremoting-servlet.xml
Introduce JCR proxys
[lgpl/argeo-commons.git] / server / modules / org.argeo.jackrabbit.webapp / WEB-INF / xmlremoting-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="/*.jcr" class="org.argeo.jcr.mvc.JcrBrowserController" />
13
14 <!-- Views -->
15 <bean name="getJcrItem" class="org.argeo.server.mvc.SerializingView">
16 <property name="serializer">
17 <bean class="org.argeo.jcr.mvc.JcrXmlServerSerializer" />
18 </property>
19 </bean>
20
21 <bean name="queryJcrNodes" class="org.argeo.server.mvc.SerializingView">
22 <property name="serializer" ref="jsonSerializer" />
23 </bean>
24
25 <bean name="queryJcrTable" class="org.argeo.server.mvc.SerializingView">
26 <property name="serializer" ref="jsonSerializer" />
27 </bean>
28
29 <bean name="500" class="org.argeo.server.mvc.SerializingView">
30 <property name="serializer" ref="jsonSerializer" />
31 </bean>
32
33 <!-- Serializers -->
34 <bean id="jsonSerializer" class="org.argeo.server.json.JsonServerSerializer" />
35
36 <!-- MVC -->
37 <bean id="handlerMapping"
38 class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
39 <property name="interceptors">
40 <list>
41 <ref bean="osivInterceptor" />
42 </list>
43 </property>
44 </bean>
45
46 <bean id="viewResolver"
47 class="org.springframework.web.servlet.view.BeanNameViewResolver" />
48
49 <bean class="org.argeo.server.mvc.DefaultHandlerExceptionResolver" />
50
51 </beans>