]> source.dussan.org Git - archiva.git/commitdiff
[MRM-719] make sure the logger is available to the closure class
authorBrett Porter <brett@apache.org>
Wed, 27 Feb 2008 20:27:53 +0000 (20:27 +0000)
committerBrett Porter <brett@apache.org>
Wed, 27 Feb 2008 20:27:53 +0000 (20:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@631706 13f79535-47bb-0310-9956-ffa450edef68

archiva-1.0.x/archiva-database/src/main/java/org/apache/maven/archiva/database/updater/JdoDatabaseUpdater.java

index 475c95628896b095b72bbfcc971baeb2f34294bc..822cd18fce36d773f664f04dc689c1dc874edaac 100644 (file)
@@ -40,9 +40,8 @@ import java.util.List;
  *
  * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
  * @version $Id$
- * 
- * @plexus.component role="org.apache.maven.archiva.database.updater.DatabaseUpdater" 
- *   role-hint="jdo" 
+ * @plexus.component role="org.apache.maven.archiva.database.updater.DatabaseUpdater"
+ * role-hint="jdo"
  */
 public class JdoDatabaseUpdater
     extends AbstractLogEnabled
@@ -58,7 +57,10 @@ public class JdoDatabaseUpdater
      */
     private DatabaseConsumers dbConsumers;
 
-    private ProcessArchivaArtifactClosure processArtifactClosure = new ProcessArchivaArtifactClosure();
+    /**
+     * @plexus.requirement
+     */
+    private ProcessArchivaArtifactClosure processArtifactClosure;
 
     public void update()
         throws ArchivaDatabaseException
@@ -147,7 +149,7 @@ public class JdoDatabaseUpdater
             getLogger().warn( "There are no selected consumers for unprocessed artifacts." );
             return;
         }
-        
+
         this.processArtifactClosure.setArtifact( artifact );
         CollectionUtils.forAllDo( consumers, this.processArtifactClosure );
 
@@ -165,7 +167,7 @@ public class JdoDatabaseUpdater
             getLogger().warn( "There are no selected consumers for artifact cleanup." );
             return;
         }
-        
+
         this.processArtifactClosure.setArtifact( artifact );
         CollectionUtils.forAllDo( consumers, this.processArtifactClosure );
     }