<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
	<!-- RESOURCES -->
	<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
		<property name="basenames">
			<list>
				<value>org.eclipse.rdf4j.common.webapp.system.messages</value>
				<value>org.eclipse.rdf4j.common.webapp.messages</value>
			</list>
		</property>
	</bean>
	<!--
		Navigation model for the application. Intended to be extended by webapps based on this one.
		To do so, add the navigation models from the list below at the end of the list of navigation models
		of the extending webapp.
	-->
	<bean id="commonWebappNavigation" class="org.eclipse.rdf4j.common.webapp.navigation.NavigationModel">
		<property name="navigationModels">
			<list>
				<value>/org/eclipse/rdf4j/common/webapp/system/navigation.xml</value>
				<value>/org/eclipse/rdf4j/common/webapp/navigation.xml</value>
			</list>
		</property>
	</bean>
	<!-- MAPPINGS -->
	<!-- Mappings for the "system configuration" part of a webapp. -->
	<bean id="commonWebappSystemUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
		<property name="order" value="0"/>
		<property name="alwaysUseFullPath" value="true"/>
		<property name="mappings">
			<props>
				<prop key="/system/overview.view">commonWebappSystemOverviewController</prop>
				<prop key="/system/info/overview.view">commonWebappSystemInfoController</prop>
				<prop key="/system/info/debug.view">filenameViewController</prop>
				<prop key="/system/logging/overview.view">commonWebappLoggingOverviewController</prop>
			</props>
		</property>
		<property name="interceptors">
			<list>
				<ref bean="commonWebappCommonValuesInserter"/>
				<ref bean="commonWebappMessageInserter"/>
				<ref bean="commonWebappNavigationInserter"/>
			</list>
		</property>
	</bean>
	<!-- CONTROLLERS -->
	<bean id="commonWebappSystemOverviewController" class="org.eclipse.rdf4j.common.webapp.system.SystemOverviewController">
		<property name="view" value="system/overview"/>
		<property name="config" ref="commonAppConfig"/>
	</bean>
	<bean id="commonWebappLoggingOverviewController" class="org.eclipse.rdf4j.common.webapp.system.logging.LoggingOverviewController">
		<property name="config" ref="commonAppConfig"/>
	</bean>
	<bean id="commonWebappSystemInfoController" class="org.eclipse.rdf4j.common.webapp.system.SystemInfoController">
		<property name="view" value="system/info/overview"/>
		<property name="config" ref="commonAppConfig"/>
	</bean>
</beans>
