summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-03-26 10:50:44 +0000
committerramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-03-26 10:50:44 +0000
commitb9bec749de05ebc6ed1c51fb8fb4a447fd8c4409 (patch)
tree0025e3efb24b87947e107e1286f730bb6f157c70 /branches
parenta6cb76239fe7e25565515fd6621ff82dc8c603f8 (diff)
Fixes for TUSCANY-2941
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@758592 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java12
-rw-r--r--branches/sca-java-1.x/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml14
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"/>