From 35292049954fe9cea9815ac322ea53aab17037ea Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 10 Jun 2011 15:38:52 +0000 Subject: [PATCH] cannot use @Inject for old plexus components' git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1134352 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/archiva/consumers/core/ValidateChecksumConsumer.java | 2 +- .../scheduler/repository/RepositoryArchivaTaskScheduler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ValidateChecksumConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ValidateChecksumConsumer.java index d767f9ac4..24e4a9797 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ValidateChecksumConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ValidateChecksumConsumer.java @@ -76,7 +76,6 @@ public class ValidateChecksumConsumer /** * plexus.requirement */ - @Inject private ChecksumFile checksum; /** @@ -174,6 +173,7 @@ public class ValidateChecksumConsumer public void initialize() throws PlexusSisuBridgeException { + checksum = plexusSisuBridge.lookup( ChecksumFile.class ); digesterList = plexusSisuBridge.lookupList( Digester.class ); for ( Iterator itDigesters = digesterList.iterator(); itDigesters.hasNext(); ) { diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryArchivaTaskScheduler.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryArchivaTaskScheduler.java index 67881abfc..a734687f5 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryArchivaTaskScheduler.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryArchivaTaskScheduler.java @@ -72,7 +72,7 @@ public class RepositoryArchivaTaskScheduler private Scheduler scheduler; @Inject - CronExpressionValidator cronValidator; + private CronExpressionValidator cronValidator; /** * plexus.requirement role-hint="repository-scanning" -- 2.39.5