Revision 252b7206
Added by Niels Hoffmann about 14 years ago
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<beans xmlns="http://www.springframework.org/schema/beans" |
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4 |
xmlns:context="http://www.springframework.org/schema/context"
|
|
5 |
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
6 |
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xmlns:context="http://www.springframework.org/schema/context" |
|
5 |
xmlns:tx="http://www.springframework.org/schema/tx" |
|
6 |
xsi:schemaLocation="http://www.springframework.org/schema/beans |
|
7 | 7 |
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd |
8 | 8 |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd |
9 | 9 |
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd |
10 | 10 |
"> |
11 |
|
|
12 |
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"> |
|
13 |
<property name="classesToBeBound"> |
|
14 |
<list> |
|
15 |
<value>eu.etaxonomy.remote.dto.rdf.Rdf</value> |
|
16 |
<value>eu.etaxonomy.cdm.remote.dto.tdwg.voc.TaxonConcept</value> |
|
17 |
<value>eu.etaxonomy.cdm.remote.dto.tdwg.voc.SpeciesProfileModel</value> |
|
18 |
<value>eu.etaxonomy.cdm.remote.dto.oaipmh.OAIPMH</value> |
|
19 |
</list> |
|
20 |
</property> |
|
21 |
<property name="marshallerProperties"> |
|
22 |
<map> |
|
23 |
<entry key="com.sun.xml.bind.namespacePrefixMapper"> |
|
24 |
<bean class="eu.etaxonomy.cdm.jaxb.TDWGNamespacePrefixMapper"/> |
|
25 |
</entry> |
|
26 |
<entry key="com.sun.xml.bind.xmlHeaders" value="<?xml-stylesheet type='text/xsl' href='/human.xsl'?>"/> |
|
27 |
<entry key="com.sun.xml.bind.xmlHeaders" value="<?xml-stylesheet type='text/xsl' href='/oai2.xsl'?>"/> |
|
28 |
</map> |
|
29 |
</property> |
|
30 |
</bean> |
|
31 |
|
|
32 |
<bean id="dozerMapper" class="eu.etaxonomy.cdm.remote.dto.assembler.DozerBeanMapperFactoryBean"> |
|
33 |
<property name="mappingFiles"> |
|
34 |
<list> |
|
35 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/oaipmh/mappings.xml</value> |
|
36 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/tdwg/mappings.xml</value> |
|
37 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/tdwg/mappings-deep.xml</value> |
|
38 |
<!-- |
|
11 |
|
|
12 |
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"> |
|
13 |
<property name="classesToBeBound"> |
|
14 |
<list> |
|
15 |
<value>eu.etaxonomy.remote.dto.rdf.Rdf</value> |
|
16 |
<value>eu.etaxonomy.cdm.remote.dto.tdwg.voc.TaxonConcept</value> |
|
17 |
<value>eu.etaxonomy.cdm.remote.dto.tdwg.voc.SpeciesProfileModel</value> |
|
18 |
<value>eu.etaxonomy.cdm.remote.dto.oaipmh.OAIPMH</value> |
|
19 |
</list> |
|
20 |
</property> |
|
21 |
<property name="marshallerProperties"> |
|
22 |
<map> |
|
23 |
<entry key="com.sun.xml.bind.namespacePrefixMapper"> |
|
24 |
<bean class="eu.etaxonomy.cdm.jaxb.TDWGNamespacePrefixMapper"/> |
|
25 |
</entry> |
|
26 |
<entry key="com.sun.xml.bind.xmlHeaders" |
|
27 |
value="<?xml-stylesheet type='text/xsl' href='/human.xsl'?>"/> |
|
28 |
<entry key="com.sun.xml.bind.xmlHeaders" |
|
29 |
value="<?xml-stylesheet type='text/xsl' href='/oai2.xsl'?>"/> |
|
30 |
</map> |
|
31 |
</property> |
|
32 |
</bean> |
|
33 |
|
|
34 |
<bean id="dozerMapper" class="eu.etaxonomy.cdm.remote.dto.assembler.DozerBeanMapperFactoryBean"> |
|
35 |
<property name="mappingFiles"> |
|
36 |
<list> |
|
37 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/oaipmh/mappings.xml</value> |
|
38 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/tdwg/mappings.xml</value> |
|
39 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/tdwg/mappings-deep.xml</value> |
|
40 |
<!-- |
|
39 | 41 |
Substitute mappings-deep.xml to prefer relations in objects over embedded relations |
40 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/tdwg/mappings-shallow.xml</value>--> |
|
41 |
</list> |
|
42 |
</property> |
|
43 |
<property name="customFieldMapper"> |
|
44 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.HibernateProxyFieldMapper"/> |
|
45 |
</property> |
|
46 |
<property name="customConvertersWithId"> |
|
47 |
<map> |
|
48 |
<entry key="relatedPageConverter" value-ref="relatedPageConverter"/> |
|
49 |
<entry key="lsidProxyConverter" value-ref="lsidProxyConverter"/> |
|
50 |
<entry key="lsidConverter"> |
|
51 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.LsidConverter"/> |
|
52 |
</entry> |
|
53 |
<entry key="dateTimeConverter"> |
|
54 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.DateTimeConverter"/> |
|
55 |
</entry> |
|
56 |
<entry key="hibernateProxyDeepConverter"> |
|
57 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.HibernateProxyNullSafeDeepConverter"/> |
|
58 |
</entry> |
|
59 |
<entry key="preferLsidToUriConverter"> |
|
60 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.PreferLsidToUriConverter"/> |
|
61 |
</entry> |
|
62 |
<entry key="stripTagsConverter"> |
|
63 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.StripTagsConverter"/> |
|
64 |
</entry> |
|
65 |
</map> |
|
66 |
</property> |
|
67 |
</bean> |
|
68 |
|
|
69 |
<bean name="lsidProxyConverter" class="eu.etaxonomy.cdm.remote.dto.assembler.converter.LsidProxyConverter"/> |
|
70 |
|
|
71 |
<bean name="relatedPageConverter" class="eu.etaxonomy.cdm.remote.dto.assembler.converter.DefaultRelatedPageConverter"/> |
|
72 |
|
|
42 |
<value>classpath:/eu/etaxonomy/cdm/remote/dto/tdwg/mappings-shallow.xml</value>--> |
|
43 |
</list> |
|
44 |
</property> |
|
45 |
<property name="customFieldMapper"> |
|
46 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.HibernateProxyFieldMapper"/> |
|
47 |
</property> |
|
48 |
<property name="customConvertersWithId"> |
|
49 |
<map> |
|
50 |
<entry key="relatedPageConverter" value-ref="relatedPageConverter"/> |
|
51 |
<entry key="lsidProxyConverter" value-ref="lsidProxyConverter"/> |
|
52 |
<entry key="lsidConverter"> |
|
53 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.LsidConverter"/> |
|
54 |
</entry> |
|
55 |
<entry key="dateTimeConverter"> |
|
56 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.DateTimeConverter"/> |
|
57 |
</entry> |
|
58 |
<entry key="hibernateProxyDeepConverter"> |
|
59 |
<bean |
|
60 |
class="eu.etaxonomy.cdm.remote.dto.assembler.converter.HibernateProxyNullSafeDeepConverter" |
|
61 |
/> |
|
62 |
</entry> |
|
63 |
<entry key="preferLsidToUriConverter"> |
|
64 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.PreferLsidToUriConverter"/> |
|
65 |
</entry> |
|
66 |
<entry key="stripTagsConverter"> |
|
67 |
<bean class="eu.etaxonomy.cdm.remote.dto.assembler.converter.StripTagsConverter"/> |
|
68 |
</entry> |
|
69 |
</map> |
|
70 |
</property> |
|
71 |
</bean> |
|
72 |
|
|
73 |
<bean name="lsidProxyConverter" |
|
74 |
class="eu.etaxonomy.cdm.remote.dto.assembler.converter.LsidProxyConverter"/> |
|
75 |
|
|
76 |
<bean name="relatedPageConverter" |
|
77 |
class="eu.etaxonomy.cdm.remote.dto.assembler.converter.DefaultRelatedPageConverter"/> |
|
78 |
|
|
79 |
|
|
80 |
<!-- OAI-PMH --> |
|
81 |
<bean name="taxonOaiPmhController" |
|
82 |
class="eu.etaxonomy.cdm.remote.controller.oaipmh.TaxonOaiPmhController"> |
|
83 |
<property name="cachingModel" ref="taxonOaiPmhCacheMapping"/> |
|
84 |
</bean> |
|
85 |
|
|
86 |
<bean name="taxonOaiPmhCacheMapping" |
|
87 |
class="org.springmodules.cache.provider.ehcache.EhCacheCachingModel"> |
|
88 |
<property name="cacheName" |
|
89 |
value="eu.etaxonomy.cdm.remote.controller.TaxonOaiPmhController.resumptionToken"/> |
|
90 |
</bean> |
|
91 |
|
|
92 |
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> |
|
93 |
<property name="configLocation" value="classpath:/eu/etaxonomy/cdm/remote/ehcache.xml"/> |
|
94 |
<property name="shared" value="true"/> |
|
95 |
</bean> |
|
96 |
|
|
97 |
<bean id="serializableFactory" |
|
98 |
class="org.springmodules.cache.serializable.XStreamSerializableFactory"/> |
|
99 |
|
|
100 |
<bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade"> |
|
101 |
<property name="cacheManager" ref="cacheManager"/> |
|
102 |
<property name="serializableFactory" ref="serializableFactory"/> |
|
103 |
</bean> |
|
104 |
|
|
73 | 105 |
</beans> |
Also available in: Unified diff
Refactored webapplication specific configurations into a new project. cdmlib-remote may now be used in any context.