summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-03-01 10:28:52 +0000
committerOlivier Lamy <olamy@apache.org>2012-03-01 10:28:52 +0000
commit7aacdb1bf1c208d5169a54e462828a5e5545c558 (patch)
tree45ae3a45452b61d7467c88596bfee91588148d81 /archiva-modules/archiva-web/archiva-rest
parent7aa49fd4ed5540cb44a3ce834a1d85388f38d81b (diff)
downloadarchiva-7aacdb1bf1c208d5169a54e462828a5e5545c558.tar.gz
archiva-7aacdb1bf1c208d5169a54e462828a5e5545c558.zip
[MRM-1610] Use Jackson as jaxrs provider for cxf for performance reasons
fix some javascript mapping for redback part. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295498 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/resources/META-INF/spring-context.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/resources/META-INF/spring-context.xml
index 1342487ae..ea22360ee 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/resources/META-INF/spring-context.xml
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/resources/META-INF/spring-context.xml
@@ -39,11 +39,17 @@
<context:component-scan
base-package="org.apache.archiva.rest.services"/>
+ <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider">
+ <property name="mapper" ref="redbackJacksonMapper"/>
+ </bean>
+
+ <bean id="redbackJacksonMapper" class="org.codehaus.jackson.map.ObjectMapper">
+ </bean>
<jaxrs:server id="archivaServices" address="/archivaServices">
<jaxrs:providers>
- <bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>
+ <ref bean="jsonProvider"/>
<ref bean="authenticationInterceptor#rest"/>
<ref bean="permissionInterceptor#rest"/>