mirror of https://github.com/apache/archiva.git
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:
parent
67de6d5fc0
commit
cde61f1cfc
|
@ -26,6 +26,7 @@ import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
import javax.inject.Named;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -33,8 +34,6 @@ import java.util.Properties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link PreDownloadPolicy} to check if the requested url has failed before.
|
* {@link PreDownloadPolicy} to check if the requested url has failed before.
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@Service( "preDownloadPolicy#cache-failures" )
|
@Service( "preDownloadPolicy#cache-failures" )
|
||||||
public class CachedFailuresPolicy
|
public class CachedFailuresPolicy
|
||||||
|
|
|
@ -23,6 +23,7 @@ import org.apache.archiva.redback.components.cache.Cache;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
import javax.inject.Named;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,7 +36,7 @@ public class DefaultUrlFailureCache
|
||||||
private Cache urlCache;
|
private Cache urlCache;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public DefaultUrlFailureCache( Cache urlCache )
|
public DefaultUrlFailureCache( @Named( "url-failures-cache" ) Cache urlCache )
|
||||||
{
|
{
|
||||||
this.urlCache = urlCache;
|
this.urlCache = urlCache;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue