mirror of https://github.com/apache/archiva.git
Rename BaseConsumer to Consumer
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@708866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b4e2c98b8d
commit
a52072ec9d
|
@ -33,7 +33,7 @@ import org.apache.maven.archiva.configuration.FileTypes;
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractMonitoredConsumer
|
public abstract class AbstractMonitoredConsumer
|
||||||
implements BaseConsumer
|
implements Consumer
|
||||||
{
|
{
|
||||||
private Set<ConsumerMonitor> monitors = new HashSet<ConsumerMonitor>();
|
private Set<ConsumerMonitor> monitors = new HashSet<ConsumerMonitor>();
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import java.util.List;
|
||||||
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
|
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public interface ArchivaArtifactConsumer extends BaseConsumer
|
public interface ArchivaArtifactConsumer extends Consumer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Get the list of included file patterns for this consumer.
|
* Get the list of included file patterns for this consumer.
|
||||||
|
|
|
@ -20,12 +20,12 @@ package org.apache.maven.archiva.consumers;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseConsumer - the base set of methods for a consumer.
|
* Consumer - the base set of methods for a consumer.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
|
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public abstract interface BaseConsumer
|
public abstract interface Consumer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* This is the id for the consumer.
|
* This is the id for the consumer.
|
|
@ -34,7 +34,7 @@ public interface ConsumerMonitor
|
||||||
* @param type the type of error.
|
* @param type the type of error.
|
||||||
* @param message the message about the error.
|
* @param message the message about the error.
|
||||||
*/
|
*/
|
||||||
public void consumerError( BaseConsumer consumer, String type, String message );
|
public void consumerError( Consumer consumer, String type, String message );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A consumer warning event.
|
* A consumer warning event.
|
||||||
|
@ -43,7 +43,7 @@ public interface ConsumerMonitor
|
||||||
* @param type the type of warning.
|
* @param type the type of warning.
|
||||||
* @param message the message about the warning.
|
* @param message the message about the warning.
|
||||||
*/
|
*/
|
||||||
public void consumerWarning( BaseConsumer consumer, String type, String message );
|
public void consumerWarning( Consumer consumer, String type, String message );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A consumer informational event.
|
* A consumer informational event.
|
||||||
|
@ -51,5 +51,5 @@ public interface ConsumerMonitor
|
||||||
* @param consumer the consumer that caused the informational message.
|
* @param consumer the consumer that caused the informational message.
|
||||||
* @param message the message.
|
* @param message the message.
|
||||||
*/
|
*/
|
||||||
public void consumerInfo( BaseConsumer consumer, String message );
|
public void consumerInfo( Consumer consumer, String message );
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ import java.util.List;
|
||||||
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
|
* @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public interface RepositoryContentConsumer extends BaseConsumer
|
public interface RepositoryContentConsumer extends Consumer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Get the list of included file patterns for this consumer.
|
* Get the list of included file patterns for this consumer.
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.maven.archiva.consumers.functors;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.commons.collections.Predicate;
|
import org.apache.commons.collections.Predicate;
|
||||||
import org.apache.maven.archiva.consumers.BaseConsumer;
|
import org.apache.maven.archiva.consumers.Consumer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Selects Consumers that are flaged as 'permanent'.
|
* Selects Consumers that are flaged as 'permanent'.
|
||||||
|
@ -36,9 +36,9 @@ public class PermanentConsumerPredicate
|
||||||
{
|
{
|
||||||
boolean satisfies = false;
|
boolean satisfies = false;
|
||||||
|
|
||||||
if ( object instanceof BaseConsumer )
|
if ( object instanceof Consumer )
|
||||||
{
|
{
|
||||||
BaseConsumer consumer = (BaseConsumer) object;
|
Consumer consumer = (Consumer) object;
|
||||||
satisfies = consumer.isPermanent();
|
satisfies = consumer.isPermanent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue