-
Notifications
You must be signed in to change notification settings - Fork 475
/
common-dao-context.xml
101 lines (76 loc) · 4.76 KB
/
common-dao-context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014-2016 CyberVision, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<context:annotation-config/>
<aop:aspectj-autoproxy />
<bean class="org.springframework.retry.annotation.RetryConfiguration" />
<context:component-scan base-package="org.kaaproject.kaa.server.common.dao"/>
<util:properties id="sql_dao" location="classpath:sql-dao.properties"/>
<util:properties id="nosql_dao" location="classpath:nosql-dao.properties"/>
<import resource="classpath:common-dao-sql-context.xml"/>
<import resource="classpath:common-dao-${nosql_db_provider_name}-context.xml"/>
<tx:annotation-driven transaction-manager="transactionManager"/>
<bean id="schemaGenerationFactory"
class="org.kaaproject.kaa.server.common.core.algorithms.schema.SchemaGenerationAlgorithmFactoryImpl"/>
<bean id="overrideAlgorithmFactory"
class="org.kaaproject.kaa.server.common.core.algorithms.override.DefaultOverrideAlgorithmFactory"/>
<bean id="eventSchemaProcessor"
class="org.kaaproject.kaa.server.common.dao.schema.EventSchemaProcessorImpl"/>
<bean id="endpointService" class="org.kaaproject.kaa.server.common.dao.service.EndpointServiceImpl">
<property name="endpointProfileDao" ref="endpointProfileDao"/>
<property name="endpointConfigurationDao" ref="endpointConfigurationDao"/>
<property name="endpointUserDao" ref="endpointUserDao"/>
<property name="topicListEntryDao" ref="topicListEntryDao"/>
</bean>
<bean id="sdkProfileService" class="org.kaaproject.kaa.server.common.dao.service.SdkProfileServiceImpl">
<property name="endpointProfileDao" ref="endpointProfileDao"/>
</bean>
<bean id="notificationService" class="org.kaaproject.kaa.server.common.dao.service.NotificationServiceImpl">
<property name="notificationDao" ref="notificationDao"/>
<property name="unicastNotificationDao" ref="unicastNotificationDao"/>
<property name="endpointProfileDao" ref="endpointProfileDao"/>
</bean>
<bean id="topicService" class="org.kaaproject.kaa.server.common.dao.service.TopicServiceImpl">
<property name="notificationDao" ref="notificationDao"/>
</bean>
<bean id="userConfigurationService" class="org.kaaproject.kaa.server.common.dao.service.UserConfigurationServiceImpl">
<property name="endpointUserConfigurationDao" ref="endpointUserConfigurationDao"/>
</bean>
<bean id="serverProfileService" class="org.kaaproject.kaa.server.common.dao.service.ServerProfileServiceImpl">
<property name="endpointProfileDao" ref="endpointProfileDao"/>
</bean>
<bean id="endpointRegistrationService" class="org.kaaproject.kaa.server.common.dao.service.EndpointRegistrationServiceImpl">
<property name="endpointRegistrationDao" ref="endpointRegistrationDao"/>
</bean>
<!-- CREDENTIALS SERVICES -->
<bean id="internalCredentialsService" class="org.kaaproject.kaa.server.common.dao.service.InternalCredentialsService">
<property name="credentialsDao" ref="credentialsDao"/>
</bean>
<bean id="trustfulCredentialsService" class="org.kaaproject.kaa.server.common.dao.service.TrustfulCredentialsService"/>
</beans>