*
* @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
*/
private DatabaseConsumers dbConsumers;
- private ProcessArchivaArtifactClosure processArtifactClosure = new ProcessArchivaArtifactClosure();
+ /**
+ * @plexus.requirement
+ */
+ private ProcessArchivaArtifactClosure processArtifactClosure;
public void update()
throws ArchivaDatabaseException
getLogger().warn( "There are no selected consumers for unprocessed artifacts." );
return;
}
-
+
this.processArtifactClosure.setArtifact( artifact );
CollectionUtils.forAllDo( consumers, this.processArtifactClosure );
getLogger().warn( "There are no selected consumers for artifact cleanup." );
return;
}
-
+
this.processArtifactClosure.setArtifact( artifact );
CollectionUtils.forAllDo( consumers, this.processArtifactClosure );
}