You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ra...@apache.org on 2009/03/03 07:56:58 UTC

svn commit: r749548 - in /tuscany/branches/sca-java-1.x/samples/simple-bigbank-spring/src/main: java/bigbank/account/AccountServiceImpl.java resources/spring-context/Account-spring-context.xml

Author: ramkumar
Date: Tue Mar  3 06:56:57 2009
New Revision: 749548

URL: http://svn.apache.org/viewvc?rev=749548&view=rev
Log:
Fix for TUSCANY-2875

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=749548&r1=749547&r2=749548&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 Tue Mar  3 06:56:57 2009
@@ -21,8 +21,6 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import org.osoa.sca.annotations.Service;
-
 import bigbank.account.checking.CheckingAccountDetails;
 import bigbank.account.checking.CheckingAccountService;
 import bigbank.account.savings.SavingsAccountDetails;
@@ -35,20 +33,19 @@
 /**
  * Account service implementation
  */
-@Service(AccountService.class)
 public class AccountServiceImpl implements AccountService {
 
-    private SavingsAccountService savingsAccountService;
+	protected SavingsAccountService savingsAccountService;
     
-    private CheckingAccountService checkingAccountService;
+	protected CheckingAccountService checkingAccountService;
     
-    private StockAccountService stockAccountService;
+	protected StockAccountService stockAccountService;
     
-    private CalculatorService calculatorService;
+	protected CalculatorService calculatorService;
     
-    private StockQuoteService stockQuoteService;
+	protected StockQuoteService stockQuoteService;
     
-    private String currency;
+	protected String currency;
 
     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=749548&r1=749547&r2=749548&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 Tue Mar  3 06:56:57 2009
@@ -24,8 +24,8 @@
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/sca http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd">
 
-    <!-- <sca:service name="AccountService"
-        type="bigbank.account.AccountService" target="AccountServiceBean"/> -->
+    <sca:service name="AccountService"
+        type="bigbank.account.AccountService" target="AccountServiceBean"/>
     
     <bean id="AccountServiceBean" class="bigbank.account.AccountServiceImpl">     
         <property name="calculatorService" ref="calculatorService"/>
@@ -46,8 +46,8 @@
     
     <sca:reference name="stockQuoteService" type="bigbank.stockquote.StockQuoteService"/>
     
-    <!-- <sca:reference name="savingsAccountServiceRef" type="bigbank.account.savings.SavingsAccountService"/>-->
+    <!-- <sca:reference name="savingsAccountService" type="bigbank.account.savings.SavingsAccountService"/>-->
     
-    <!-- <sca:reference name="stockAccountServiceRef" type="bigbank.account.stock.StockAccountService"/>-->
+    <!-- <sca:reference name="stockAccountService" type="bigbank.account.stock.StockAccountService"/>-->
 
 </beans>