source: trunk/web-app/WEB-INF/applicationContext.xml @ 765

Last change on this file since 765 was 449, checked in by gav, 15 years ago

Upgrade to Grails-1.2.1, all plugins upgraded to latest versions and configs adjusted to suite.

File size: 1.9 KB
RevLine 
[55]1<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns="http://www.springframework.org/schema/beans"
3       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4       xsi:schemaLocation="
5http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
6
7        <bean id="grailsApplication" class="org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean">
8                <description>Grails application factory bean</description>
9        <property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
10        <property name="grailsResourceLoader" ref="grailsResourceLoader" />
11        </bean>
12
13        <bean id="pluginManager" class="org.codehaus.groovy.grails.plugins.GrailsPluginManagerFactoryBean">
14                <description>A bean that manages Grails plugins</description>
15        <property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
16        <property name="application" ref="grailsApplication" />
17        </bean>
18
19    <bean id="grailsConfigurator" class="org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator">
20        <constructor-arg>
21            <ref bean="grailsApplication" />
22        </constructor-arg>
23        <property name="pluginManager" ref="pluginManager" />
24    </bean>
25
26    <bean id="grailsResourceLoader" class="org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean">
27        <property name="grailsResourceHolder" ref="grailsResourceHolder" />
28    </bean>
29
30    <bean id="grailsResourceHolder" scope="prototype" class="org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder">
31        <property name="resources">
32              <value>classpath*:**/grails-app/**/*.groovy</value>
33        </property>
34    </bean>   
35   
36   <bean id="characterEncodingFilter"
37      class="org.springframework.web.filter.CharacterEncodingFilter">
38        <property name="encoding">
39          <value>utf-8</value>
40        </property>
41   </bean>     
42</beans>
Note: See TracBrowser for help on using the repository browser.