Revision 6548ea8a
Added by Cherian Mathew almost 9 years ago
- corrected recursive autowiring
- changed application context loading to be more performant
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remotingApplicationContext.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 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" |
|
4 |
xmlns:tx="http://www.springframework.org/schema/tx" |
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd |
|
7 | 6 |
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd |
8 | 7 |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> |
9 | 8 |
|
10 | 9 |
|
11 |
<!-- <bean id="remoteTermInitializer" class="eu.etaxonomy.cdm.remote.service.RemoteTermInitializer"/> -->
|
|
10 |
<!-- <bean id="remoteTermInitializer" class="eu.etaxonomy.cdm.remote.service.RemoteTermInitializer"/> -->
|
|
12 | 11 |
|
13 |
<context:annotation-config />
|
|
12 |
<context:annotation-config />
|
|
14 | 13 |
|
15 |
<import resource="classpath:/eu/etaxonomy/cdm/httpInvokerServiceClients.xml" />
|
|
14 |
<import resource="classpath:/eu/etaxonomy/cdm/httpInvokerServiceClients.xml" />
|
|
16 | 15 |
|
17 |
<context:component-scan base-package="eu/etaxonomy/taxeditor/session" /> |
|
18 | 16 |
|
19 |
<bean id="cdmApplicationRemoteConfiguration" |
|
20 |
class="eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration" /> |
|
21 | 17 |
|
22 |
<import resource="classpath:/eu/etaxonomy/cdm/remoting_services_security.xml" /> |
|
18 |
<!-- <context:component-scan base-package="eu/etaxonomy/taxeditor/session" |
|
19 |
/> --> |
|
20 |
<bean id="cdmEntitySessionManager" class="eu.etaxonomy.taxeditor.session.CdmEntitySessionManager" /> |
|
23 | 21 |
|
24 |
<context:component-scan base-package="eu.etaxonomy.cdm.api.cache"> |
|
25 |
<!-- FIXME:Remoting Temp workaround to make remoting work --> |
|
26 |
<context:exclude-filter type="regex" |
|
27 |
expression="eu\.etaxonomy\.cdm\.api\.cache\.CdmTermCacher" /> |
|
28 |
</context:component-scan> |
|
22 |
<bean id="cdmApplicationRemoteConfiguration" |
|
23 |
class="eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration" /> |
|
29 | 24 |
|
30 |
<context:component-scan base-package="eu.etaxonomy.taxeditor.service"/> |
|
31 |
|
|
32 |
|
|
33 |
<!-- EditGeoService was moved to ext. Therefore it will not be found by |
|
34 |
the default component scan. We added it here because the Editor needs it. |
|
35 |
However, this is only a temporary solution. In the future we want to pass |
|
36 |
in an application context with the editor. --> |
|
25 |
<!-- <import resource="classpath:/eu/etaxonomy/cdm/remoting_services_security.xml" |
|
26 |
/> --> |
|
27 |
|
|
28 |
<!-- <context:component-scan base-package="eu.etaxonomy.taxeditor.service" /> --> |
|
29 |
|
|
30 |
<bean id="cdmServiceRequestExecutor" |
|
31 |
class="eu.etaxonomy.taxeditor.service.CdmServiceRequestExecutor" /> |
|
32 |
|
|
33 |
<bean id="cachedCommonService" |
|
34 |
class="eu.etaxonomy.taxeditor.service.CachedCommonServiceImpl" /> |
|
35 |
|
|
36 |
<bean id="accessDecisionManager" |
|
37 |
class="eu.etaxonomy.cdm.persistence.hibernate.permission.UnanimousBasedUnrevokable"> |
|
38 |
|
|
39 |
<property name="decisionVoters"> |
|
40 |
<list> |
|
41 |
<bean |
|
42 |
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.GrantAlwaysVoter" /> |
|
43 |
<bean |
|
44 |
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonNodeVoter" /> |
|
45 |
<bean |
|
46 |
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonBaseVoter" /> |
|
47 |
<bean |
|
48 |
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionBaseVoter" /> |
|
49 |
<bean |
|
50 |
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionElementVoter" /> |
|
51 |
</list> |
|
52 |
</property> |
|
53 |
</bean> |
|
54 |
|
|
55 |
<!-- CdmPermissionEvaluator.hasPermissions() evaluates the CdmPermissions |
|
56 |
like TAXONNODE.UPDATE{20c8f083-5870-4cbd-bf56-c5b2b98ab6a7} --> |
|
57 |
<bean id="cdmPermissionEvaluator" |
|
58 |
class="eu.etaxonomy.cdm.persistence.hibernate.permission.CdmPermissionEvaluator"> |
|
59 |
<property name="accessDecisionManager" ref="accessDecisionManager" /> |
|
60 |
</bean> |
|
61 |
|
|
62 |
<!-- The CdmSecurityHibernateInterceptor checks onSave() and on flushDirty() |
|
63 |
if the currently authenticated principal or token has sufficient permissions |
|
64 |
on the entity to be persisted --> |
|
65 |
<bean id="securityHibernateInterceptor" |
|
66 |
class="eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor"> |
|
67 |
<property name="permissionEvaluator" ref="cdmPermissionEvaluator" /> |
|
68 |
</bean> |
|
69 |
|
|
70 |
<!-- <bean id="authenticationManager" --> |
|
71 |
<!-- class="org.springframework.security.authentication.ProviderManager"> --> |
|
72 |
<!-- <property name="providers"> --> |
|
73 |
<!-- <list> --> |
|
74 |
<!-- <ref local="daoAuthenticationProvider" /> --> |
|
75 |
<!-- </list> --> |
|
76 |
<!-- </property> --> |
|
77 |
<!-- </bean> --> |
|
78 |
|
|
79 |
<!-- <bean id="daoAuthenticationProvider" --> |
|
80 |
<!-- class="org.springframework.security.authentication.dao.DaoAuthenticationProvider"> --> |
|
81 |
<!-- <property name="userDetailsService" ref="userService" /> --> |
|
82 |
<!-- <property name="saltSource" ref="saltSource" /> --> |
|
83 |
<!-- <property name="passwordEncoder" ref="passwordEncoder" /> --> |
|
84 |
<!-- </bean> --> |
|
85 |
|
|
86 |
<!-- <bean id="passwordEncoder" --> |
|
87 |
<!-- class="org.springframework.security.authentication.encoding.Md5PasswordEncoder" /> --> |
|
88 |
|
|
89 |
<!-- <bean id="saltSource" --> |
|
90 |
<!-- class="org.springframework.security.authentication.dao.ReflectionSaltSource"> --> |
|
91 |
<!-- <property name="userPropertyToUse" value="getUsername" /> --> |
|
92 |
<!-- </bean> --> |
|
93 |
|
|
94 |
|
|
95 |
<context:component-scan base-package="eu.etaxonomy.cdm.api.cache"> |
|
96 |
<!-- FIXME:Remoting Temp workaround to make remoting work --> |
|
97 |
<context:exclude-filter type="regex" |
|
98 |
expression="eu\.etaxonomy\.cdm\.api\.cache\.CdmTermCacher" /> |
|
99 |
</context:component-scan> |
|
37 | 100 |
|
38 | 101 |
|
39 |
<!-- <bean id="conversationHolder" class="eu.etaxonomy.cdm.api.conversation.ConversationHolder" |
|
40 |
scope="prototype"/> --> |
|
41 | 102 |
|
42 |
<!-- TODO move to io --> |
|
43 |
<!-- <context:component-scan base-package="eu/etaxonomy/cdm/io"> <context:exclude-filter |
|
44 |
type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" /> </context:component-scan> --> |
|
45 |
<!-- enable the configuration of transactional behavior based on annotations --> |
|
46 |
<!-- <tx:annotation-driven transaction-manager="transactionManager"/> --> |
|
47 | 103 |
|
48 | 104 |
</beans> |
Also available in: Unified diff