mirror of
https://github.com/apache/archiva.git
synced 2025-02-08 11:06:03 +00:00
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 @@
|
|||||||
import org.apache.archiva.common.FileTypeUtils;
|
import org.apache.archiva.common.FileTypeUtils;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
@ -34,13 +33,15 @@
|
|||||||
public abstract class AbstractMonitoredConsumer
|
public abstract class AbstractMonitoredConsumer
|
||||||
implements Consumer
|
implements Consumer
|
||||||
{
|
{
|
||||||
private Set<ConsumerMonitor> monitors = new HashSet<ConsumerMonitor>();
|
private final Set<ConsumerMonitor> monitors = new HashSet<ConsumerMonitor>();
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addConsumerMonitor( ConsumerMonitor monitor )
|
public void addConsumerMonitor( ConsumerMonitor monitor )
|
||||||
{
|
{
|
||||||
monitors.add( monitor );
|
monitors.add( monitor );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removeConsumerMonitor( ConsumerMonitor monitor )
|
public void removeConsumerMonitor( ConsumerMonitor monitor )
|
||||||
{
|
{
|
||||||
monitors.remove( monitor );
|
monitors.remove( monitor );
|
||||||
@ -48,9 +49,8 @@ public void removeConsumerMonitor( ConsumerMonitor monitor )
|
|||||||
|
|
||||||
protected void triggerConsumerError( String type, String message )
|
protected void triggerConsumerError( String type, String message )
|
||||||
{
|
{
|
||||||
for ( Iterator<ConsumerMonitor> itmonitors = monitors.iterator(); itmonitors.hasNext(); )
|
for ( ConsumerMonitor monitor : monitors )
|
||||||
{
|
{
|
||||||
ConsumerMonitor monitor = itmonitors.next();
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
monitor.consumerError( this, type, message );
|
monitor.consumerError( this, type, message );
|
||||||
@ -64,9 +64,8 @@ protected void triggerConsumerError( String type, String message )
|
|||||||
|
|
||||||
protected void triggerConsumerWarning( String type, String message )
|
protected void triggerConsumerWarning( String type, String message )
|
||||||
{
|
{
|
||||||
for ( Iterator<ConsumerMonitor> itmonitors = monitors.iterator(); itmonitors.hasNext(); )
|
for ( ConsumerMonitor monitor : monitors )
|
||||||
{
|
{
|
||||||
ConsumerMonitor monitor = itmonitors.next();
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
monitor.consumerWarning( this, type, message );
|
monitor.consumerWarning( this, type, message );
|
||||||
@ -80,9 +79,8 @@ protected void triggerConsumerWarning( String type, String message )
|
|||||||
|
|
||||||
protected void triggerConsumerInfo( String message )
|
protected void triggerConsumerInfo( String message )
|
||||||
{
|
{
|
||||||
for ( Iterator<ConsumerMonitor> itmonitors = monitors.iterator(); itmonitors.hasNext(); )
|
for ( ConsumerMonitor monitor : monitors )
|
||||||
{
|
{
|
||||||
ConsumerMonitor monitor = itmonitors.next();
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
monitor.consumerInfo( this, message );
|
monitor.consumerInfo( this, message );
|
||||||
|
@ -95,9 +95,9 @@ void processFile( String path )
|
|||||||
throws ConsumerException;
|
throws ConsumerException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param path
|
* @param path the relative file path (in the repository) to process.
|
||||||
* @param executeOnEntireRepo
|
* @param executeOnEntireRepo flags whether the consumer will be executed on an entire repository or just on a specific resource
|
||||||
* @throws Exception
|
* @throws Exception if there was a problem processing this file.
|
||||||
*/
|
*/
|
||||||
void processFile( String path, boolean executeOnEntireRepo )
|
void processFile( String path, boolean executeOnEntireRepo )
|
||||||
throws Exception;
|
throws Exception;
|
||||||
@ -114,7 +114,7 @@ void processFile( String path, boolean executeOnEntireRepo )
|
|||||||
void completeScan();
|
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 );
|
void completeScan( boolean executeOnEntireRepo );
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@ public ConsumerWantsFilePredicate( ManagedRepository managedRepository )
|
|||||||
this.managedRepository = managedRepository;
|
this.managedRepository = managedRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean evaluate( Object object )
|
public boolean evaluate( Object object )
|
||||||
{
|
{
|
||||||
boolean satisfies = false;
|
boolean satisfies = false;
|
||||||
|
@ -31,6 +31,7 @@ public class PermanentConsumerPredicate
|
|||||||
implements Predicate
|
implements Predicate
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean evaluate( Object object )
|
public boolean evaluate( Object object )
|
||||||
{
|
{
|
||||||
boolean satisfies = false;
|
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…
x
Reference in New Issue
Block a user