summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-01-08 04:56:45 +0000
committerOlivier Lamy <olamy@apache.org>2014-01-08 04:56:45 +0000
commit9c775bf55afba5cb0ad66c5a4484e76e07b1b35f (patch)
tree94f87cd541f4e9a6c9e4cf3e4c95392357eac28f
parent2d840d9ffe0ebfe949a09638ebf0d81f4a2c8f21 (diff)
downloadarchiva-9c775bf55afba5cb0ad66c5a4484e76e07b1b35f.tar.gz
archiva-9c775bf55afba5cb0ad66c5a4484e76e07b1b35f.zip
use constructor injection
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1556439 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
index 677517898..9e8331085 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
@@ -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 DefaultRedbackRuntimeConfigurationAdmin
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