diff options
Diffstat (limited to 'branches/sca-java-1.x/samples/simple-bigbank-spring/src/main')
2 files changed, 13 insertions, 13 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 8c1e536a4d..be02087c7d 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 @@ -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.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 d86464b065..08bc82b8ff 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 @@ -32,19 +32,19 @@ <property name="stockQuoteService" ref="stockQuoteService"/> <property name="checkingAccountService" ref="checkingAccountService"/> - <!-- 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"/> + <!-- 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="currency" value="EURO"/> - <!-- constructor-arg type="bigbank.account.savings.SavingsAccountService"> + <!-- Demonstration of injecting references with constructors --> + <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"/> |