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; }