Added foundry rewrite with user default setting.
Change-Id: Ibc09468b6851af359eaf18df140fc973ab9dce69
diff --git a/lite/src/main/resources/lite-config.xml b/lite/src/main/resources/lite-config.xml
index e120e9d..a180563 100644
--- a/lite/src/main/resources/lite-config.xml
+++ b/lite/src/main/resources/lite-config.xml
@@ -13,7 +13,9 @@
<context:component-scan
- base-package="de.ids_mannheim.korap.web.filter, de.ids_mannheim.korap.web.utils,
+ base-package="de.ids_mannheim.korap.rewrite,
+ de.ids_mannheim.korap.web.filter,
+ de.ids_mannheim.korap.web.utils,
de.ids_mannheim.korap.authentication.http" />
<context:annotation-config />
@@ -168,8 +170,14 @@
<bean id="annotationConverter" class="de.ids_mannheim.korap.dto.converter.AnnotationConverter" />
<!-- Rewrite -->
+ <bean id="foundryInject" class="de.ids_mannheim.korap.rewrite.FoundryInject" />
+
+ <util:list id="rewriteTasks" value-type="de.ids_mannheim.korap.rewrite.RewriteTask">
+ <ref bean="foundryInject"/>
+ </util:list>
+
<bean id="rewriteHandler" class="de.ids_mannheim.korap.rewrite.RewriteHandler">
- <constructor-arg ref="config" />
+ <constructor-arg ref="rewriteTasks" />
</bean>
diff --git a/lite/src/test/resources/test-config.xml b/lite/src/test/resources/test-config.xml
index 434828f..a012e26 100644
--- a/lite/src/test/resources/test-config.xml
+++ b/lite/src/test/resources/test-config.xml
@@ -13,7 +13,9 @@
<context:component-scan
- base-package="de.ids_mannheim.korap.web.filter, de.ids_mannheim.korap.web.utils,
+ base-package="de.ids_mannheim.korap.rewrite,
+ de.ids_mannheim.korap.web.filter,
+ de.ids_mannheim.korap.web.utils,
de.ids_mannheim.korap.authentication.http" />
<context:annotation-config />
@@ -133,9 +135,8 @@
</bean>
<!-- Filters -->
-<!-- <bean id="APIVersionFilter" class="de.ids_mannheim.korap.web.APIVersionFilter"
- scope="singleton" />
- -->
+ <!-- <bean id="APIVersionFilter" class="de.ids_mannheim.korap.web.APIVersionFilter"
+ scope="singleton" /> -->
<!-- Authentication -->
<bean id="authenticationManager"
class="de.ids_mannheim.korap.authentication.DummyAuthenticationManager" />
@@ -166,12 +167,19 @@
<bean id="annotationConverter" class="de.ids_mannheim.korap.dto.converter.AnnotationConverter" />
<!-- Rewrite -->
+ <bean id="foundryInject" class="de.ids_mannheim.korap.rewrite.FoundryInject" />
+
+ <util:list id="rewriteTasks" value-type="de.ids_mannheim.korap.rewrite.RewriteTask">
+ <ref bean="foundryInject" />
+ </util:list>
+
<bean id="rewriteHandler" class="de.ids_mannheim.korap.rewrite.RewriteHandler">
- <constructor-arg ref="config" />
+ <constructor-arg ref="rewriteTasks" />
</bean>
+
<bean id="kustvakt_auditing"
class="de.ids_mannheim.korap.interfaces.defaults.DefaultAuditing">
</bean>