blob: 671ca339dda8e23d0d4d65518916dee3945d31ce [file] [log] [blame]
margarethaf92485a2017-11-14 17:12:36 +01001<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns:util="http://www.springframework.org/schema/util"
4 xmlns:context="http://www.springframework.org/schema/context"
5 xmlns="http://www.springframework.org/schema/beans"
6 xsi:schemaLocation="http://www.springframework.org/schema/beans
margaretha3da7cd32018-10-22 17:42:52 +02007 http://www.springframework.org/schema/beans/spring-beans.xsd
margarethaf92485a2017-11-14 17:12:36 +01008 http://www.springframework.org/schema/context
margaretha3da7cd32018-10-22 17:42:52 +02009 http://www.springframework.org/schema/context/spring-context.xsd
margarethaf92485a2017-11-14 17:12:36 +010010 http://www.springframework.org/schema/util
margaretha3da7cd32018-10-22 17:42:52 +020011 http://www.springframework.org/schema/util/spring-util.xsd">
margarethaf92485a2017-11-14 17:12:36 +010012
13
14 <context:component-scan base-package="de.ids_mannheim.korap" />
15 <context:annotation-config />
16
17 <bean id="properties"
18 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
19 <property name="ignoreResourceNotFound" value="true"/>
20 <property name="locations">
21 <array>
22 <value>classpath:kustvakt-lite.conf</value>
23 <value>file:./kustvakt-lite.conf</value>
24 </array>
25 </property>
26 </bean>
27
28 <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
29 <property name="properties">
30 <ref bean="properties"/>
31 </property>
32 </bean>
33
34 <bean id="kustvakt_auditing"
35 class="de.ids_mannheim.korap.interfaces.defaults.DefaultAuditing">
36 </bean>
37
38 <bean id="kustvakt_response"
margaretha56e8e552017-12-05 16:31:21 +010039 class="de.ids_mannheim.korap.web.CoreResponseHandler">
margarethaf92485a2017-11-14 17:12:36 +010040 <constructor-arg index="0" name="iface" ref="kustvakt_auditing"/>
41 </bean>
42
43 <bean id="kustvakt_config"
44 class="de.ids_mannheim.korap.config.KustvaktConfiguration">
45 <constructor-arg index="0" name="properties" ref="properties"/>
46 </bean>
47
margaretha56e8e552017-12-05 16:31:21 +010048 <bean id="kustvakt_rewrite" class="de.ids_mannheim.korap.resource.rewrite.RewriteHandler">
49 <constructor-arg ref="kustvakt_config" />
50 </bean>
51
margarethaf92485a2017-11-14 17:12:36 +010052 <bean id="search_krill"
53 class="de.ids_mannheim.korap.web.SearchKrill">
54 <constructor-arg value="${krill.indexDir}"/>
55 </bean>
56
57</beans>