summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/samples/simple-bigbank-spring/src
diff options
context:
space:
mode:
authorramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-03-09 10:10:44 +0000
committerramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-03-09 10:10:44 +0000
commit1dde13266f5e77a08e9c325c75a33e2abb60f74e (patch)
treea6c52a3a8703ca4c619f75314f6dcb582c2a6652 /branches/sca-java-1.x/samples/simple-bigbank-spring/src
parentff6d646fcbd9f06f013cf934fcdde66c213c7db2 (diff)
Fixes for TUSCANY-2642
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@751644 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/samples/simple-bigbank-spring/src')
-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>