archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1424765 - in /archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies: CachedFailuresPolicy.java urlcache/DefaultUrlFailureCache.java
Date Thu, 20 Dec 2012 23:47:31 GMT
Author: olamy
Date: Thu Dec 20 23:47:31 2012
New Revision: 1424765

URL: http://svn.apache.org/viewvc?rev=1424765&view=rev
Log:
fix bean name

Modified:
    archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java
    archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java?rev=1424765&r1=1424764&r2=1424765&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java
Thu Dec 20 23:47:31 2012
@@ -26,6 +26,7 @@ import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
+import javax.inject.Named;
 import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
@@ -33,8 +34,6 @@ import java.util.Properties;
 
 /**
  * {@link PreDownloadPolicy} to check if the requested url has failed before.
- *
- *
  */
 @Service( "preDownloadPolicy#cache-failures" )
 public class CachedFailuresPolicy

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java?rev=1424765&r1=1424764&r2=1424765&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java
Thu Dec 20 23:47:31 2012
@@ -23,6 +23,7 @@ import org.apache.archiva.redback.compon
 import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
+import javax.inject.Named;
 import java.util.Date;
 
 /**
@@ -35,7 +36,7 @@ public class DefaultUrlFailureCache
     private Cache urlCache;
 
     @Inject
-    public DefaultUrlFailureCache( Cache urlCache )
+    public DefaultUrlFailureCache( @Named( "url-failures-cache" ) Cache urlCache )
     {
         this.urlCache = urlCache;
     }



Mime
View raw message