use plexus-spring

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@630665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicolas De Loof 2008-02-24 19:54:13 +00:00
parent 458aa505a8
commit c380953a23
4 changed files with 14 additions and 2 deletions

View File

@ -32,6 +32,11 @@
<groupId>org.apache.maven.archiva</groupId>
<artifactId>archiva-common</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-spring</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>

View File

@ -22,7 +22,7 @@
import java.io.File;
import java.util.Properties;
import org.apache.maven.archiva.common.spring.PlexusClassPathXmlApplicationContext;
import org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext;
import org.apache.maven.archiva.policies.urlcache.UrlFailureCache;
import org.codehaus.plexus.PlexusTestCase;
import org.springframework.context.ApplicationContext;
@ -41,7 +41,7 @@ public class CachedFailuresPolicyTest
private DownloadPolicy lookupPolicy()
throws Exception
{
return (DownloadPolicy) factory.getBean( PreDownloadPolicy.class.getName() + "#cache-failures" );
return (DownloadPolicy) factory.getBean( "preDownloadPolicy#cache-failures" );
}
private File getFile()

View File

@ -39,6 +39,10 @@
<level value="error"/>
</logger>
<logger name="org.springframewrok">
<level value="DEBUG"/>
</logger>
<root>
<priority value ="info" />
<appender-ref ref="console" />

View File

@ -4,6 +4,9 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="loggerManager" class="org.codehaus.plexus.logging.console.ConsoleLoggerManager"
init-method="initialize"/>
<bean id="urlFailureCache" class="org.apache.maven.archiva.policies.urlcache.DefaultUrlFailureCache">
<!-- collaborators and configuration for this bean go here -->
<constructor-arg ref="cache#url-failures-cache" type="org.codehaus.plexus.cache.Cache"/>