]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.lib.detached/src/main/resources/org/argeo/slc/lib/detached/spring.xml
0037c2d5aa6865bb285053d393dd98f45dcc730b
[gpl/argeo-slc.git] / runtime / org.argeo.slc.lib.detached / src / main / resources / org / argeo / slc / lib / detached / spring.xml
1 <!--
2
3 Copyright (C) 2007-2012 Mathieu Baudier
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 -->
18 <beans xmlns="http://www.springframework.org/schema/beans"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
21 default-lazy-init="true">
22
23 <bean id="slcTemplate.detached.testDefinition"
24 class="org.argeo.slc.lib.detached.DetachedTestDefinition"
25 abstract="true">
26 </bean>
27
28 <bean id="slcDefault.detached.xmlConverterCastor"
29 class="org.argeo.slc.lib.detached.DetachedXmlConverterSpring">
30 <property name="marshaller"
31 ref="slcDefault.detached.castor.marshaller" />
32 <property name="unmarshaller"
33 ref="slcDefault.detached.castor.marshaller" />
34 </bean>
35
36 <bean id="slcDefault.detached.castor.marshaller"
37 class="org.springframework.oxm.castor.CastorMarshaller">
38 <property name="mappingLocations">
39 <list>
40 <value>
41 classpath:org/argeo/slc/lib/detached/castor.xml
42 </value>
43 </list>
44 </property>
45 <property name="whitespacePreserve" value="true" />
46 </bean>
47
48 <bean id="slcDefault.detached.xml.xsdValidator"
49 factory-bean="slcDefault.detached.xml.xsdSchema"
50 factory-method="createValidator" />
51
52 <bean id="slcDefault.detached.xml.xsdSchema"
53 class="org.springframework.xml.xsd.SimpleXsdSchema">
54 <property name="xsd"
55 value="classpath:/org/argeo/slc/detached/slc-detached.xsd" />
56 </bean>
57
58 </beans>