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

Last change on this file since 68 was 17, checked in by tuxta, 16 years ago

Created grails app and init domain classes

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