aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2008-11-28 15:15:57 +0000
committerBrett Porter <brett@apache.org>2008-11-28 15:15:57 +0000
commitebba6ca1d7022e5022b28a13b471d27c172199c8 (patch)
tree308f8ea9d9a86768d740d5a7a427b9f7ff0be0c8 /archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api
parentfbb49e338760ae54b51946c689e36eb0bfdb8220 (diff)
downloadarchiva-ebba6ca1d7022e5022b28a13b471d27c172199c8.tar.gz
archiva-ebba6ca1d7022e5022b28a13b471d27c172199c8.zip
[MRM-1025] consolidate more database uses into the database module
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@721514 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api')
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/ArchivaArtifactConsumer.java80
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseCleanupConsumer.java31
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseUnprocessedArtifactConsumer.java31
3 files changed, 0 insertions, 142 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/ArchivaArtifactConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/ArchivaArtifactConsumer.java
deleted file mode 100644
index 7c10664c1..000000000
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/ArchivaArtifactConsumer.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package org.apache.maven.archiva.consumers;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.apache.maven.archiva.model.ArchivaArtifact;
-
-import java.util.List;
-
-/**
- * ArchivaArtifactConsumer - consumer for ArchivaArtifact objects.
- *
- * @version $Id$
- */
-public interface ArchivaArtifactConsumer extends Consumer
-{
- /**
- * Get the list of included file patterns for this consumer.
- *
- * @return the list of ({@link String}) artifact types to process.
- */
- public List<String> getIncludedTypes();
-
- /**
- * <p>
- * Event that triggers at the beginning of a scan.
- * </p>
- *
- * <p>
- * NOTE: This would be a good place to initialize the consumer, to lock any resources, and to
- * generally start tracking the scan as a whole.
- * </p>
- */
- public void beginScan();
-
- /**
- * <p>
- * Event indicating an {@link ArchivaArtifact} is to be processed by this consumer.
- * </p>
- *
- * <p>
- * NOTE: The consumer does not need to process the artifact immediately, can can opt to queue and/or track
- * the artifact to be processed in batch. Just be sure to complete the processing by the {@link #completeScan()}
- * event.
- * </p>
- *
- * @param file the file to process.
- * @throws ConsumerException if there was a problem processing this file.
- */
- public void processArchivaArtifact( ArchivaArtifact artifact ) throws ConsumerException;
-
- /**
- * <p>
- * Event that triggers on the completion of a scan.
- * </p>
- *
- * <p>
- * NOTE: If the consumer opted to batch up processing requests in the
- * {@link #processArchivaArtifact(ArchivaArtifact)} event this would be the last opportunity to drain
- * any processing queue's.
- * </p>
- */
- public void completeScan();
-}
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseCleanupConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseCleanupConsumer.java
deleted file mode 100644
index 754f2b85f..000000000
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseCleanupConsumer.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.apache.maven.archiva.consumers;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * DatabaseCleanupConsumer
- *
- * @version $Id$
- */
-public interface DatabaseCleanupConsumer
- extends ArchivaArtifactConsumer
-{
-
-}
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseUnprocessedArtifactConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseUnprocessedArtifactConsumer.java
deleted file mode 100644
index f258d9cc1..000000000
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/maven/archiva/consumers/DatabaseUnprocessedArtifactConsumer.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.apache.maven.archiva.consumers;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * DatabaseUnprocessedArtifactConsumer
- *
- * @version $Id$
- */
-public interface DatabaseUnprocessedArtifactConsumer
- extends ArchivaArtifactConsumer
-{
-
-}