archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sk...@apache.org
Subject svn commit: r1576503 - in /archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers: ./ functors/
Date Tue, 11 Mar 2014 21:08:06 GMT
Author: skygo
Date: Tue Mar 11 21:08:05 2014
New Revision: 1576503

URL: http://svn.apache.org/r1576503
Log:
clean up override package-info

Added:
    archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/package-info.java
  (with props)
    archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/package-info.java
  (with props)
Modified:
    archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/AbstractMonitoredConsumer.java
    archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/RepositoryContentConsumer.java
    archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/ConsumerWantsFilePredicate.java
    archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/PermanentConsumerPredicate.java

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/AbstractMonitoredConsumer.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/AbstractMonitoredConsumer.java?rev=1576503&r1=1576502&r2=1576503&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/AbstractMonitoredConsumer.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/AbstractMonitoredConsumer.java
Tue Mar 11 21:08:05 2014
@@ -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 AbstractMonitoredC
 
     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 AbstractMonitoredC
 
     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 AbstractMonitoredC
 
     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 );

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/RepositoryContentConsumer.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/RepositoryContentConsumer.java?rev=1576503&r1=1576502&r2=1576503&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/RepositoryContentConsumer.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/RepositoryContentConsumer.java
Tue Mar 11 21:08:05 2014
@@ -95,9 +95,9 @@ public interface RepositoryContentConsum
         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 RepositoryContentConsum
     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 );
 

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/ConsumerWantsFilePredicate.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/ConsumerWantsFilePredicate.java?rev=1576503&r1=1576502&r2=1576503&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/ConsumerWantsFilePredicate.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/ConsumerWantsFilePredicate.java
Tue Mar 11 21:08:05 2014
@@ -62,6 +62,7 @@ public class ConsumerWantsFilePredicate
         this.managedRepository = managedRepository;
     }
 
+    @Override
     public boolean evaluate( Object object )
     {
         boolean satisfies = false;

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/PermanentConsumerPredicate.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/PermanentConsumerPredicate.java?rev=1576503&r1=1576502&r2=1576503&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/PermanentConsumerPredicate.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/PermanentConsumerPredicate.java
Tue Mar 11 21:08:05 2014
@@ -31,6 +31,7 @@ public class PermanentConsumerPredicate
     implements Predicate
 {
 
+    @Override
     public boolean evaluate( Object object )
     {
         boolean satisfies = false;

Added: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/package-info.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/package-info.java?rev=1576503&view=auto
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/package-info.java
(added)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/package-info.java
Tue Mar 11 21:08:05 2014
@@ -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;

Propchange: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/functors/package-info.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/package-info.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/package-info.java?rev=1576503&view=auto
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/package-info.java
(added)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/package-info.java
Tue Mar 11 21:08:05 2014
@@ -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;

Propchange: archiva/trunk/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-api/src/main/java/org/apache/archiva/consumers/package-info.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message