forked from PacktPublishing/Spring5-Design-Patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplicationContext.xml
19 lines (15 loc) · 1.03 KB
/
applicationContext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:c="http://www.springframework.org/schema/c"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- <bean id="transferService" class="com.packt.patterninspring.chapter3.bankapp.service.TransferServiceImpl"
c:accountRepository-ref="accountRepository" c:transferRepository-ref="transferRepository"/> -->
<bean id="transferService" class="com.packt.patterninspring.chapter3.bankapp.service.TransferServiceImpl">
<constructor-arg ref="accountRepository"/>
<constructor-arg ref="transferRepository"/>
</bean>
<bean id="accountRepository" class="com.packt.patterninspring.chapter3.bankapp.repository.jdbc.JdbcAccountRepository"/>
<bean id="transferRepository" class="com.packt.patterninspring.chapter3.bankapp.repository.jdbc.JdbcTransferRepository"/>
<!-- more bean definitions go here -->
</beans>