META-INF.spring.batch.servlet.resources.resources-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-batch-admin-resources
Show all versions of spring-batch-admin-resources
Extensible UI framework and basic styles and layout for Spring Batch Admin console.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> <context:annotation-config /> <bean id="baseMenu" abstract="true"> <property name="prefix" value="#{resourceService.servletPath}"/> </bean> <bean id="menuManager" class="org.springframework.batch.admin.web.resources.MenuManager" /> <bean class="org.springframework.batch.admin.web.util.AnnotationMappingMetaDataController"/> <!-- freemarker config --> <bean id="freemarkerConfig" class="org.springframework.batch.admin.web.freemarker.HippyFreeMarkerConfigurer"> <property name="templateLoaderPaths" value="/WEB-INF/web,classpath:/org/springframework/batch/admin/web" /> <!-- TODO: find a way to switch this on for some template paths and not others --> <property name="preferFileSystemAccess" value="false" /> <property name="freemarkerVariables"> <map> <entry key="menuManager" value-ref="menuManager" /> </map> </property> </bean> <bean id="defaultAnnotationHandlerMapping" class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"> <property name="interceptors"> <bean class="org.springframework.batch.admin.web.interceptor.ContentTypeInterceptor"> <property name="extensions"> <set> <value>rss</value> <value>xml</value> <value>txt</value> <value>properties</value> </set> </property> </bean> </property> </bean> <bean id="beanNameUrlHandlerMapping" class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping" /> <bean id="beanNameViewResolver" class="org.springframework.web.servlet.view.BeanNameViewResolver" /> <bean id="parentLayout" class="org.springframework.js.ajax.freemarker.AjaxFreeMarkerView" abstract="true"> <property name="viewResolver"> <bean class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"> <property name="exposeSpringMacroHelpers" value="false" /> <property name="allowRequestOverride" value="true" /> </bean> </property> <property name="attributes"> <props merge="true"> <prop key="titleCode">home.title</prop> <prop key="titleText">Spring Batch Admin</prop> </props> </property> </bean> <bean id="standard" parent="parentLayout"> <property name="url" value="/layouts/standard.ftl" /> <property name="attributes"> <props merge="true"> <prop key="body">/layouts/home.ftl</prop> <!-- Matches the prefix of the servlet mapping in web.xml --> <prop key="servletPath">#{resourceService.servletPath}</prop> </props> </property> </bean> <bean id="standard.rss" parent="parentLayout"> <property name="url" value="/layouts/rss/standard.ftl" /> <property name="attributes"> <props merge="true"> <prop key="body">/layouts/rss/home.ftl</prop> <!-- Matches the prefix of the servlet mapping in web.xml --> <prop key="servletPath">#{resourceService.servletPath}</prop> </props> </property> <property name="contentType" value="text/xml" /> </bean> <bean id="home" parent="standard" /> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy