Author: ramkumar
Date: Mon Mar 9 10:10:44 2009
New Revision: 751644
URL: http://svn.apache.org/viewvc?rev=751644&view=rev
Log:
Fixes for TUSCANY-2642
Modified:
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
Modified:
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java?rev=751644&r1=751643&r2=751644&view=diff
==============================================================================
---
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
(original)
+++
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
Mon Mar 9 10:10:44 2009
@@ -35,17 +35,22 @@
*/
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) {
Modified:
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml?rev=751644&r1=751643&r2=751644&view=diff
==============================================================================
---
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
(original)
+++
tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
Mon Mar 9 10:10:44 2009
@@ -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>