]> source.dussan.org Git - archiva.git/commitdiff
formatting and @since
authorOlivier Lamy <olamy@apache.org>
Sun, 2 Jun 2013 11:42:24 +0000 (11:42 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 2 Jun 2013 11:42:24 +0000 (11:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1488673 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/PluginsService.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPluginsServices.java

index d6f04f406de17bcb5fcd29807247ce3d4e20e28f..8748ee64e85ab4d30d423e168faf742d0fb0fdf3 100644 (file)
@@ -31,17 +31,15 @@ import javax.ws.rs.core.MediaType;
  * @author Eric Barboni
  * @since 1.4.0
  */
-@Path( "/pluginsService/" )
+@Path("/pluginsService/")
 public interface PluginsService
 {
 
-    @Path( "getAdminPlugins" )
+    @Path("getAdminPlugins")
     @GET
-    @Produces( 
-    {
-        MediaType.TEXT_PLAIN
-    } )
-    @RedbackAuthorization( noRestriction = true )
+    @Produces(
+        { MediaType.TEXT_PLAIN })
+    @RedbackAuthorization(noRestriction = true)
     String getAdminPlugins()
-            throws ArchivaRestServiceException;
+        throws ArchivaRestServiceException;
 }
index bfa6e752dbceff0fb4664c3023284ccb59712bf5..123b233747fab63457bbc30978909cb43d41a966 100644 (file)
@@ -21,10 +21,12 @@ package org.apache.archiva.rest.services;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
+
 import org.apache.archiva.rest.api.services.ArchivaRestServiceException;
 import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
+
 import org.apache.archiva.rest.api.services.PluginsService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -33,15 +35,19 @@ import org.springframework.core.io.Resource;
 
 /**
  * @author Eric Barboni
+ * @since 1.4.0
  */
-@Service( "pluginsService#rest" )
+@Service("pluginsService#rest")
 public class DefaultPluginsServices
-        implements PluginsService
+    implements PluginsService
 {
 
     private List<String> repositoryType = new ArrayList<String>();
+
     private List<String> adminFeatures = new ArrayList<String>();
+
     private ApplicationContext appCont;
+
     private Logger log = LoggerFactory.getLogger( getClass() );
 
     @Inject
@@ -50,7 +56,8 @@ public class DefaultPluginsServices
         this.appCont = applicationContext;
     }
 
-    private void feed( List<String> repository, String key ) throws ArchivaRestServiceException
+    private void feed( List<String> repository, String key )
+        throws ArchivaRestServiceException
     {
         log.info( "Feeding: {}", key );
         repository.clear();
@@ -74,7 +81,7 @@ public class DefaultPluginsServices
 
     @Override
     public String getAdminPlugins()
-            throws ArchivaRestServiceException
+        throws ArchivaRestServiceException
     {
         // rebuild
         feed( repositoryType, "repository" );