diff options
author | Olivier Lamy <olamy@apache.org> | 2012-10-05 19:48:15 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-10-05 19:48:15 +0000 |
commit | d381f0d431b46ede15ee7264bdc90a4d7adf1c4a (patch) | |
tree | ded0a5ab3b5d7aa65abf48717ef35ca22208abde /archiva-modules/archiva-web/archiva-web-common/src/main/resources | |
parent | 68f37c8366c6d57d4374e785a7354d79900a3c1e (diff) | |
download | archiva-d381f0d431b46ede15ee7264bdc90a4d7adf1c4a.tar.gz archiva-d381f0d431b46ede15ee7264bdc90a4d7adf1c4a.zip |
add rest ui services documentation move rest services from the webapp-js to web-common module
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1394756 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common/src/main/resources')
-rwxr-xr-x | archiva-modules/archiva-web/archiva-web-common/src/main/resources/META-INF/spring-context.xml | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/META-INF/spring-context.xml index 261b88532..ea18caee1 100755 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/META-INF/spring-context.xml @@ -22,17 +22,44 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" + xmlns:jaxrs="http://cxf.apache.org/jaxrs" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util - http://www.springframework.org/schema/util/spring-util-3.0.xsd" + http://www.springframework.org/schema/util/spring-util-3.0.xsd + http://cxf.apache.org/jaxrs + http://cxf.apache.org/schemas/jaxrs.xsd" default-lazy-init="true"> <context:annotation-config/> - <context:component-scan base-package="org.apache.archiva.web.spring, org.apache.archiva.web.startup, org.apache.archiva.web.runtime"/> + <context:component-scan base-package="org.apache.archiva.web.spring, org.apache.archiva.web.startup, org.apache.archiva.web.runtime, org.apache.archiva.web.api"/> <util:properties id="archivaRuntimeProperties" location="classpath:application.properties" /> + <jaxrs:server id="archivaUiServices" address="/archivaUiServices"> + + <jaxrs:providers> + <bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/> + <ref bean="authenticationInterceptor#rest"/> + <ref bean="permissionInterceptor#rest"/> + <ref bean="archivaRestServiceExceptionMapper"/> + </jaxrs:providers> + + <jaxrs:serviceBeans> + <ref bean="runtimeInfoService#rest"/> + <ref bean="dataValidatorService#rest"/> + <ref bean="fileUploadService#rest"/> + </jaxrs:serviceBeans> + + <jaxrs:outInterceptors> + <ref bean="threadLocalUserCleaner#rest"/> + </jaxrs:outInterceptors> + + <jaxrs:outFaultInterceptors> + + </jaxrs:outFaultInterceptors> + </jaxrs:server> + </beans>
\ No newline at end of file |