fix bean name

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1424765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-20 23:47:31 +00:00
parent 67de6d5fc0
commit cde61f1cfc
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

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