mirror of https://github.com/apache/archiva.git
clean up override package-info
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1576503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1cd76e8df6
commit
1be3b5a974
|
@ -22,7 +22,6 @@ package org.apache.archiva.consumers;
|
|||
import org.apache.archiva.common.FileTypeUtils;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
|
@ -34,13 +33,15 @@ import java.util.Set;
|
|||
public abstract class AbstractMonitoredConsumer
|
||||
implements Consumer
|
||||
{
|
||||
private Set<ConsumerMonitor> monitors = new HashSet<ConsumerMonitor>();
|
||||
private final Set<ConsumerMonitor> monitors = new HashSet<ConsumerMonitor>();
|
||||
|
||||
@Override
|
||||
public void addConsumerMonitor( ConsumerMonitor monitor )
|
||||
{
|
||||
monitors.add( monitor );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeConsumerMonitor( ConsumerMonitor monitor )
|
||||
{
|
||||
monitors.remove( monitor );
|
||||
|
@ -48,9 +49,8 @@ public abstract class AbstractMonitoredConsumer
|
|||
|
||||
protected void triggerConsumerError( String type, String message )
|
||||
{
|
||||
for ( Iterator<ConsumerMonitor> itmonitors = monitors.iterator(); itmonitors.hasNext(); )
|
||||
for ( ConsumerMonitor monitor : monitors )
|
||||
{
|
||||
ConsumerMonitor monitor = itmonitors.next();
|
||||
try
|
||||
{
|
||||
monitor.consumerError( this, type, message );
|
||||
|
@ -64,9 +64,8 @@ public abstract class AbstractMonitoredConsumer
|
|||
|
||||
protected void triggerConsumerWarning( String type, String message )
|
||||
{
|
||||
for ( Iterator<ConsumerMonitor> itmonitors = monitors.iterator(); itmonitors.hasNext(); )
|
||||
for ( ConsumerMonitor monitor : monitors )
|
||||
{
|
||||
ConsumerMonitor monitor = itmonitors.next();
|
||||
try
|
||||
{
|
||||
monitor.consumerWarning( this, type, message );
|
||||
|
@ -80,9 +79,8 @@ public abstract class AbstractMonitoredConsumer
|
|||
|
||||
protected void triggerConsumerInfo( String message )
|
||||
{
|
||||
for ( Iterator<ConsumerMonitor> itmonitors = monitors.iterator(); itmonitors.hasNext(); )
|
||||
for ( ConsumerMonitor monitor : monitors )
|
||||
{
|
||||
ConsumerMonitor monitor = itmonitors.next();
|
||||
try
|
||||
{
|
||||
monitor.consumerInfo( this, message );
|
||||
|
|
|
@ -95,9 +95,9 @@ public interface RepositoryContentConsumer
|
|||
throws ConsumerException;
|
||||
|
||||
/**
|
||||
* @param path
|
||||
* @param executeOnEntireRepo
|
||||
* @throws Exception
|
||||
* @param path the relative file path (in the repository) to process.
|
||||
* @param executeOnEntireRepo flags whether the consumer will be executed on an entire repository or just on a specific resource
|
||||
* @throws Exception if there was a problem processing this file.
|
||||
*/
|
||||
void processFile( String path, boolean executeOnEntireRepo )
|
||||
throws Exception;
|
||||
|
@ -114,7 +114,7 @@ public interface RepositoryContentConsumer
|
|||
void completeScan();
|
||||
|
||||
/**
|
||||
* @param executeOnEntireRepo
|
||||
* @param executeOnEntireRepo flags whether the consumer will be executed on an entire repository or just on a specific resource
|
||||
*/
|
||||
void completeScan( boolean executeOnEntireRepo );
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ public class ConsumerWantsFilePredicate
|
|||
this.managedRepository = managedRepository;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean evaluate( Object object )
|
||||
{
|
||||
boolean satisfies = false;
|
||||
|
|
|
@ -31,6 +31,7 @@ public class PermanentConsumerPredicate
|
|||
implements Predicate
|
||||
{
|
||||
|
||||
@Override
|
||||
public boolean evaluate( Object object )
|
||||
{
|
||||
boolean satisfies = false;
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright 2014 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
/**
|
||||
* Functors for Apache Archiva consumers
|
||||
*/
|
||||
package org.apache.archiva.consumers.functors;
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright 2014 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
/**
|
||||
* Provides basic consumers API for Apache Archiva.
|
||||
*/
|
||||
package org.apache.archiva.consumers;
|
Loading…
Reference in New Issue