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

Last change on this file since 368 was 74, checked in by gav, 16 years ago

Migrate /branches/TaskRewrite to grails-1.1

File size: 2.1 KB
Line 
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="pluginMetaManager" class="org.codehaus.groovy.grails.plugins.DefaultPluginMetaManager">
20        <property name="grailsApplication" ref="grailsApplication" />
21        <property name="resourcePattern" value="/WEB-INF/plugins/*/plugin.xml" />
22    </bean>
23
24    <bean id="grailsConfigurator" class="org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator">
25        <constructor-arg>
26            <ref bean="grailsApplication" />
27        </constructor-arg>
28        <property name="pluginManager" ref="pluginManager" />
29    </bean>
30
31    <bean id="grailsResourceLoader" class="org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean">
32        <property name="grailsResourceHolder" ref="grailsResourceHolder" />
33    </bean>
34
35    <bean id="grailsResourceHolder" scope="prototype" class="org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder">
36        <property name="resources">
37              <value>classpath*:**/grails-app/**/*.groovy</value>
38        </property>
39    </bean>   
40   
41   <bean id="characterEncodingFilter"
42      class="org.springframework.web.filter.CharacterEncodingFilter">
43        <property name="encoding">
44          <value>utf-8</value>
45        </property>
46   </bean>     
47</beans>
Note: See TracBrowser for help on using the repository browser.