archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1556439 - /archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
Date Wed, 08 Jan 2014 04:56:46 GMT
Author: olamy
Date: Wed Jan  8 04:56:45 2014
New Revision: 1556439

URL: http://svn.apache.org/r1556439
Log:
use constructor injection

Modified:
    archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java?rev=1556439&r1=1556438&r2=1556439&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
Wed Jan  8 04:56:45 2014
@@ -52,7 +52,7 @@ import java.util.Set;
  * @author Olivier Lamy
  * @since 1.4-M4
  */
-@Service("redbackRuntimeConfigurationAdmin#default")
+@Service( "redbackRuntimeConfigurationAdmin#default" )
 public class DefaultRedbackRuntimeConfigurationAdmin
     extends AbstractRepositoryAdmin
     implements RedbackRuntimeConfigurationAdmin, UserConfiguration
@@ -60,21 +60,20 @@ public class DefaultRedbackRuntimeConfig
 
     protected Logger log = LoggerFactory.getLogger( getClass() );
 
-    @Inject
     private ArchivaConfiguration archivaConfiguration;
 
-    @Inject
-    @Named(value = "userConfiguration#redback")
     private UserConfiguration userConfiguration;
 
-    @Inject
-    @Named(value = "cache#users")
     private Cache usersCache;
 
     @Inject
-    public DefaultRedbackRuntimeConfigurationAdmin( ArchivaConfiguration archivaConfiguration
)
+    public DefaultRedbackRuntimeConfigurationAdmin( ArchivaConfiguration archivaConfiguration,
@Named(
+        value = "userConfiguration#redback" ) UserConfiguration userConfiguration,
+                                                    @Named( value = "cache#users" ) Cache
usersCache )
     {
         this.archivaConfiguration = archivaConfiguration;
+        this.userConfiguration = userConfiguration;
+        this.usersCache = usersCache;
     }
 
     @PostConstruct



Mime
View raw message