Browse Source

fix spring configuration for junit and force default-lazy-init="true"

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1133165 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-1.4-M1
Olivier Lamy 13 years ago
parent
commit
95dde31389

+ 2
- 1
archiva-modules/archiva-base/archiva-plexus-bridge/src/main/resources/META-INF/spring-context.xml View File

@@ -24,7 +24,8 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
default-lazy-init="true">

<context:annotation-config/>
<context:component-scan base-package="org.apache.archiva.common.plexusbridge"/>

+ 2
- 1
archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/spring-context.xml View File

@@ -23,7 +23,8 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
default-lazy-init="true">

<context:property-placeholder system-properties-mode="FALLBACK"/>
<context:annotation-config/>

+ 16
- 0
archiva-modules/archiva-base/archiva-proxy/src/test/resources/spring-context.xml View File

@@ -65,4 +65,20 @@
</bean>


<bean id="url-failures-cache" class="org.codehaus.plexus.cache.ehcache.EhcacheCache" lazy-init="true"
destroy-method="dispose">
<property name="diskExpiryThreadIntervalSeconds" value="600"/>
<property name="diskPersistent" value="false"/>
<property name="diskStorePath" value="${java.io.tmpdir}/archiva/urlcache"/>
<property name="maxElementsInMemory" value="1000"/>
<property name="memoryEvictionPolicy" value="LRU"/>
<property name="name" value="url-failures-cache"/>
<property name="overflowToDisk" value="false"/>
<!-- 45 minutes = 2700 seconds -->
<property name="timeToIdleSeconds" value="2700"/>
<!-- 30 minutes = 1800 seconds -->
<property name="timeToLiveSeconds" value="1800"/>
</bean>


</beans>

Loading…
Cancel
Save