summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.5/samples
diff options
context:
space:
mode:
authorramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-05-22 11:45:23 +0000
committerramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-05-22 11:45:23 +0000
commit0206248ffbcc7f7151ba74723f93c722aad2b75a (patch)
tree54bd947bacfa70fc8e35aac6e86f9bec842418a4 /branches/sca-java-1.5/samples
parent5a5815fe6506793c29db38fbe7cfb648f5d8b991 (diff)
Fixes for TUSCANY-3046
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@777489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.5/samples')
-rw-r--r--branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java12
-rw-r--r--branches/sca-java-1.5/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml12
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>