diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-04-28 02:17:44 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-04-28 02:17:44 +0000 |
commit | f4fc560e7162b814754976ba0feccc92037ee708 (patch) | |
tree | 8bf9dc50908c1d09b62e7b34c16711ce7ec4cc3d /archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api | |
parent | 36562a669647390e5d2065e3cfd77c3b268c9319 (diff) | |
download | archiva-f4fc560e7162b814754976ba0feccc92037ee708.tar.gz archiva-f4fc560e7162b814754976ba0feccc92037ee708.zip |
[MRM-773]
-added the constraints for getting the different versions of a specific artifact
-added the whenGathered field in beginScan(..) of RepositoryContentConsumer interface and updated all implementing consumers
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@652043 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api')
2 files changed, 7 insertions, 3 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java index 2e626bebc..7c306e1e0 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/AbstractMonitoredConsumer.java @@ -36,7 +36,7 @@ public abstract class AbstractMonitoredConsumer implements BaseConsumer { private Set<ConsumerMonitor> monitors = new HashSet<ConsumerMonitor>(); - + public void addConsumerMonitor( ConsumerMonitor monitor ) { monitors.add( monitor ); @@ -104,4 +104,6 @@ public abstract class AbstractMonitoredConsumer { return FileTypes.DEFAULT_EXCLUSIONS; } + + } diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java index b8d58dc46..9b23e1713 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/RepositoryContentConsumer.java @@ -21,6 +21,7 @@ package org.apache.maven.archiva.consumers; import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; +import java.util.Date; import java.util.List; /** @@ -56,9 +57,10 @@ public interface RepositoryContentConsumer extends BaseConsumer * </p> * * @param repository the repository that this consumer is being used for. + * @param whenGathered the start of the repository scan * @throws ConsumerException if there was a problem with using the provided repository with the consumer. */ - public void beginScan( ManagedRepositoryConfiguration repository ) throws ConsumerException; + public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered ) throws ConsumerException; /** * <p> @@ -95,5 +97,5 @@ public interface RepositoryContentConsumer extends BaseConsumer * method. * @return whether to process the unmodified files */ - boolean isProcessUnmodified(); + boolean isProcessUnmodified(); } |