From 35a35fdb9fb25ea375422de7b5627c6d8bd82e36 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 2 Jun 2013 11:42:24 +0000 Subject: [PATCH] formatting and @since git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1488673 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/rest/api/services/PluginsService.java | 14 ++++++-------- .../rest/services/DefaultPluginsServices.java | 15 +++++++++++---- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/PluginsService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/PluginsService.java index d6f04f406..8748ee64e 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/PluginsService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/PluginsService.java @@ -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; } diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPluginsServices.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPluginsServices.java index bfa6e752d..123b23374 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPluginsServices.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPluginsServices.java @@ -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 repositoryType = new ArrayList(); + private List adminFeatures = new ArrayList(); + private ApplicationContext appCont; + private Logger log = LoggerFactory.getLogger( getClass() ); @Inject @@ -50,7 +56,8 @@ public class DefaultPluginsServices this.appCont = applicationContext; } - private void feed( List repository, String key ) throws ArchivaRestServiceException + private void feed( List 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" ); -- 2.39.5