fix junit spring configuration

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-13 08:24:17 +00:00
parent 4ebc70a0e6
commit b55ef5058a
2 changed files with 12 additions and 0 deletions

View File

@ -25,16 +25,21 @@ import org.apache.jackrabbit.webdav.DavException;
import org.apache.jackrabbit.webdav.DavServletRequest; import org.apache.jackrabbit.webdav.DavServletRequest;
import org.apache.maven.archiva.configuration.ArchivaConfiguration; import org.apache.maven.archiva.configuration.ArchivaConfiguration;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
import javax.inject.Inject;
/** /**
* UnauthenticatedDavResourceFactory * UnauthenticatedDavResourceFactory
* *
* @version $Id: * @version $Id:
*/ */
@Service("archivaDavResourceFactory#unauthenticated")
public class UnauthenticatedDavResourceFactory public class UnauthenticatedDavResourceFactory
extends ArchivaDavResourceFactory extends ArchivaDavResourceFactory
{ {
@Inject
public UnauthenticatedDavResourceFactory( ApplicationContext applicationContext, PlexusSisuBridge plexusSisuBridge, public UnauthenticatedDavResourceFactory( ApplicationContext applicationContext, PlexusSisuBridge plexusSisuBridge,
ArchivaConfiguration archivaConfiguration ) ArchivaConfiguration archivaConfiguration )
throws PlexusSisuBridgeException throws PlexusSisuBridgeException

View File

@ -67,4 +67,11 @@
</property> </property>
</bean> </bean>
<alias name="archivaDavResourceFactory#unauthenticated" alias="davResourceFactory#archiva"/>
<!--
<bean name="davResourceFactory#archiva" class="org.apache.maven.archiva.webdav.UnauthenticatedDavResourceFactory">
<property name="servletAuth" ref="servletAuthenticator"/>
</bean>
-->
</beans> </beans>