summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java17
-rw-r--r--branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml11
2 files changed, 20 insertions, 8 deletions
diff --git a/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java b/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
index 964d0f9989..8c1e536a4d 100644
--- a/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
+++ b/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
@@ -35,17 +35,22 @@ import bigbank.calculator.CalculatorService;
*/
public class AccountServiceImpl implements AccountService {
- protected SavingsAccountService savingsAccountService;
+ private SavingsAccountService savingsAccountService;
- protected CheckingAccountService checkingAccountService;
+ private CheckingAccountService checkingAccountService;
- protected StockAccountService stockAccountService;
+ private StockAccountService stockAccountService;
- protected CalculatorService calculatorService;
+ private CalculatorService calculatorService;
- protected StockQuoteService stockQuoteService;
+ private StockQuoteService stockQuoteService;
- protected String currency;
+ private String currency;
+
+ /*public AccountServiceImpl(SavingsAccountService savingsAccountService, StockAccountService stockAccountService) {
+ this.savingsAccountService = savingsAccountService;
+ this.stockAccountService = stockAccountService;
+ }*/
public AccountReport getAccountReport(String customerID) {
diff --git a/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml b/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
index 4a1727b08c..d86464b065 100644
--- a/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
+++ b/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
@@ -38,6 +38,13 @@
<property name="savingsAccountService" ref="savingsAccountService"/>
<property name="stockAccountService" ref="stockAccountService"/>
<property name="currency" value="EURO"/>
+
+ <!-- constructor-arg type="bigbank.account.savings.SavingsAccountService">
+ <ref bean="savingsAccountService"/>
+ </constructor-arg>
+ <constructor-arg type="bigbank.account.stock.StockAccountService">
+ <ref bean="stockAccountService"/>
+ </constructor-arg -->
</bean>
<sca:reference name="checkingAccountService" type="bigbank.account.checking.CheckingAccountService"/>
@@ -46,8 +53,8 @@
<sca:reference name="stockQuoteService" type="bigbank.stockquote.StockQuoteService"/>
- <!-- <sca:reference name="savingsAccountService" type="bigbank.account.savings.SavingsAccountService"/>-->
+ <!-- sca:reference name="savingsAccountService" type="bigbank.account.savings.SavingsAccountService"/>
- <!-- <sca:reference name="stockAccountService" type="bigbank.account.stock.StockAccountService"/>-->
+ <sca:reference name="stockAccountService" type="bigbank.account.stock.StockAccountService"/-->
</beans>