diff options
Diffstat (limited to 'branches')
2 files changed, 12 insertions, 12 deletions
diff --git a/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java b/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java index be02087c7d..8c1e536a4d 100644 --- a/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java +++ b/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java @@ -47,10 +47,10 @@ public class AccountServiceImpl implements AccountService { private String currency; - public AccountServiceImpl(SavingsAccountService savingsAccountService, StockAccountService stockAccountService) { + /*public AccountServiceImpl(SavingsAccountService savingsAccountService, StockAccountService stockAccountService) { this.savingsAccountService = savingsAccountService; this.stockAccountService = stockAccountService; - } + }*/ public AccountReport getAccountReport(String customerID) { @@ -97,13 +97,13 @@ public class AccountServiceImpl implements AccountService { } } - /*public SavingsAccountService getSavingsAccountService() { + public SavingsAccountService getSavingsAccountService() { return savingsAccountService; } public void setSavingsAccountService(SavingsAccountService savingsAccountService) { this.savingsAccountService = savingsAccountService; - }*/ + } public CheckingAccountService getCheckingAccountService() { return checkingAccountService; @@ -113,13 +113,13 @@ public class AccountServiceImpl implements AccountService { this.checkingAccountService = checkingAccountService; } - /*public StockAccountService getStockAccountService() { + public StockAccountService getStockAccountService() { return stockAccountService; } public void setStockAccountService(StockAccountService stockAccountService) { this.stockAccountService = stockAccountService; - }*/ + } public String getCurrency() { return currency; diff --git a/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml b/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml index 08bc82b8ff..80283ce93b 100644 --- a/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml +++ b/branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml @@ -34,17 +34,17 @@ <!-- Here are some implicit references & properties - a property with a ref not satisifed within the Spring application context. --> - <!-- property name="savingsAccountService" ref="savingsAccountService"/> - <property name="stockAccountService" ref="stockAccountService"/ --> + <property name="savingsAccountService" ref="savingsAccountService"/> + <property name="stockAccountService" ref="stockAccountService"/> <property name="currency" value="EURO"/> <!-- Demonstration of injecting references with constructors --> - <constructor-arg type="bigbank.account.savings.SavingsAccountService"> + <!--<constructor-arg type="bigbank.account.savings.SavingsAccountService"> <ref bean="savingsAccountService"/> </constructor-arg> <constructor-arg type="bigbank.account.stock.StockAccountService"> <ref bean="stockAccountService"/> - </constructor-arg> + </constructor-arg>--> </bean> <sca:reference name="checkingAccountService" type="bigbank.account.checking.CheckingAccountService"/> @@ -53,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> |