]> git.argeo.org Git - gpl/argeo-slc.git/blob - modules/server/org.argeo.slc.webapp.war/WEB-INF/jcr-servlet.xml
Improve JCR
[gpl/argeo-slc.git] / modules / server / org.argeo.slc.webapp.war / WEB-INF / jcr-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.server.jcr.mvc" />
11
12 <bean name="/*.jcr" class="org.argeo.server.jcr.mvc.JcrBrowserController">
13 </bean>
14
15
16 <!-- MVC -->
17 <bean id="handlerMapping"
18 class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
19 <property name="interceptors">
20 <list>
21 <ref bean="osivInterceptor" />
22 </list>
23 </property>
24 </bean>
25
26 <bean id="viewResolver" class="org.argeo.server.mvc.SerializingViewResolver">
27 <property name="serializer">
28 <bean class="org.argeo.server.jcr.mvc.JcrXmlServerSerializer" />
29 </property>
30 </bean>
31 </beans>