]> source.dussan.org Git - archiva.git/commitdiff
add note on spring configuration
authorOlivier Lamy <olamy@apache.org>
Mon, 23 Jan 2012 14:33:49 +0000 (14:33 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 23 Jan 2012 14:33:49 +0000 (14:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234822 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/rest.apt

index 5472b3863e3761912f2313643c0eaac6757ff26b..662293c87b5feaca0ccf769c745698534f3e71c4 100644 (file)
@@ -106,6 +106,8 @@ public interface ManagedRepositoriesService
   REST services implementations are marked with the Spring annotation @Service
 
 +---------------------
+package org.apache.archiva.rest.services;
+......
 @Service( "managedRepositoriesService#rest" )
 public class DefaultManagedRepositoriesService
     extends AbstractRestService
@@ -122,6 +124,21 @@ public class DefaultManagedRepositoriesService
     </jaxrs:serviceBeans>
     .....
   </jaxrs:server>
+
+  Note as we use @Service annotation package scanning must declared in spring configuration
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:context="http://www.springframework.org/schema/context"
+       xsi:schemaLocation="http://www.springframework.org/schema/context
+           http://www.springframework.org/schema/context/spring-context-3.0.xsd ....">
+...
+  <context:annotation-config/>
+  <context:component-scan
+      base-package="org.apache.archiva.rest.services"/>
+
+...
+</beans>
 +---------------------
 
   CXF servlet is declared as: