summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-policies
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-12-20 23:47:31 +0000
committerOlivier Lamy <olamy@apache.org>2012-12-20 23:47:31 +0000
commitcde61f1cfcf70c43bb6042c155ed3ca09a57d526 (patch)
tree078c25847969980363ce4413fe5c620609faf718 /archiva-modules/archiva-base/archiva-policies
parent67de6d5fc08288fdcae68576f7e284ec51a1cec5 (diff)
downloadarchiva-cde61f1cfcf70c43bb6042c155ed3ca09a57d526.tar.gz
archiva-cde61f1cfcf70c43bb6042c155ed3ca09a57d526.zip
fix bean name
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1424765 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-policies')
-rw-r--r--archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java3
-rw-r--r--archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java3
2 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java
index e86224f6a..bb1590037 100644
--- a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java
+++ b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/CachedFailuresPolicy.java
@@ -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
diff --git a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java
index e1a5b9a69..500841071 100644
--- a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java
+++ b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/urlcache/DefaultUrlFailureCache.java
@@ -23,6 +23,7 @@ import org.apache.archiva.redback.components.cache.Cache;
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;
}