Michael Hanl | 72c7b83 | 2015-09-03 08:42:15 +0200 | [diff] [blame] | 1 | <?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" |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 4 | xmlns:context="http://www.springframework.org/schema/context" |
Michael Hanl | 72c7b83 | 2015-09-03 08:42:15 +0200 | [diff] [blame] | 5 | xmlns="http://www.springframework.org/schema/beans" |
| 6 | xsi:schemaLocation="http://www.springframework.org/schema/beans |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 7 | http://www.springframework.org/schema/beans/spring-beans-4.0.xsd |
| 8 | http://www.springframework.org/schema/context |
| 9 | http://www.springframework.org/schema/context/spring-context-4.0.xsd |
| 10 | http://www.springframework.org/schema/util |
| 11 | http://www.springframework.org/schema/util/spring-util-4.0.xsd"> |
Michael Hanl | 72c7b83 | 2015-09-03 08:42:15 +0200 | [diff] [blame] | 12 | |
| 13 | |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 14 | <context:component-scan base-package="de.ids_mannheim.korap" /> |
| 15 | <context:annotation-config /> |
Michael Hanl | d6eadd5 | 2015-11-11 18:30:33 +0100 | [diff] [blame] | 16 | |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 17 | <bean id="properties" |
Michael Hanl | d6eadd5 | 2015-11-11 18:30:33 +0100 | [diff] [blame] | 18 | class="org.springframework.beans.factory.config.PropertiesFactoryBean"> |
| 19 | <property name="ignoreResourceNotFound" value="true"/> |
| 20 | <property name="locations"> |
| 21 | <array> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 22 | <value>classpath:kustvakt-lite.conf</value> |
| 23 | <value>file:./kustvakt-lite.conf</value> |
Michael Hanl | d6eadd5 | 2015-11-11 18:30:33 +0100 | [diff] [blame] | 24 | </array> |
| 25 | </property> |
| 26 | </bean> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 27 | |
| 28 | <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
| 29 | <property name="properties"> |
| 30 | <ref bean="properties"/> |
| 31 | </property> |
| 32 | </bean> |
Michael Hanl | 72c7b83 | 2015-09-03 08:42:15 +0200 | [diff] [blame] | 33 | |
| 34 | <bean id="kustvakt_auditing" |
| 35 | class="de.ids_mannheim.korap.interfaces.defaults.DefaultAuditing"> |
| 36 | </bean> |
margaretha | 894a7d7 | 2017-11-08 19:24:20 +0100 | [diff] [blame] | 37 | |
| 38 | <bean id="kustvakt_response" |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame^] | 39 | class="de.ids_mannheim.korap.web.CoreResponseHandler"> |
margaretha | 894a7d7 | 2017-11-08 19:24:20 +0100 | [diff] [blame] | 40 | <constructor-arg index="0" name="iface" ref="kustvakt_auditing"/> |
| 41 | </bean> |
Michael Hanl | 72c7b83 | 2015-09-03 08:42:15 +0200 | [diff] [blame] | 42 | |
| 43 | <bean id="kustvakt_config" |
| 44 | class="de.ids_mannheim.korap.config.KustvaktConfiguration"> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 45 | <constructor-arg index="0" name="properties" ref="properties"/> |
Michael Hanl | 72c7b83 | 2015-09-03 08:42:15 +0200 | [diff] [blame] | 46 | </bean> |
| 47 | |
| 48 | <bean name="kustvakt_encryption" |
| 49 | class="de.ids_mannheim.korap.interfaces.defaults.DefaultEncryption"> |
| 50 | </bean> |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 51 | |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame^] | 52 | <bean id="kustvakt_rewrite" class="de.ids_mannheim.korap.resource.rewrite.RewriteHandler"> |
| 53 | <constructor-arg ref="kustvakt_config" /> |
| 54 | </bean> |
| 55 | |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 56 | <bean id="search_krill" |
| 57 | class="de.ids_mannheim.korap.web.SearchKrill"> |
| 58 | <constructor-arg value="${krill.indexDir}"/> |
| 59 | </bean> |
| 60 | |
Michael Hanl | 72c7b83 | 2015-09-03 08:42:15 +0200 | [diff] [blame] | 61 | </beans> |