tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r450924 - in /incubator/tuscany/sandbox/rfeng/samples/mortage: ./ src/main/java/mortgage/ src/main/resources/META-INF/sca/ src/test/java/mortgage/
Date Thu, 28 Sep 2006 17:04:47 GMT
Author: rfeng
Date: Thu Sep 28 10:04:46 2006
New Revision: 450924

URL: http://svn.apache.org/viewvc?view=rev&rev=450924
Log:
Fix the typo in mortgage

Added:
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculator.java
      - copied, changed from r450922, incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculator.java
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculatorImpl.java
      - copied, changed from r450922, incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculatorImpl.java
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageClient.java
      - copied, changed from r450922, incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageClient.java
Removed:
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculator.java
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculatorImpl.java
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageClient.java
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/test/java/mortgage/MortageClientTestCase.java
Modified:
    incubator/tuscany/sandbox/rfeng/samples/mortage/pom.xml
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/LoanApprovalImpl.java
    incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/resources/META-INF/sca/default.scdl

Modified: incubator/tuscany/sandbox/rfeng/samples/mortage/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortage/pom.xml?view=diff&rev=450924&r1=450923&r2=450924
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortage/pom.xml (original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortage/pom.xml Thu Sep 28 10:04:46 2006
@@ -24,7 +24,7 @@
         <version>1.0-incubator-M2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
-    <artifactId>sample-mortage</artifactId>
+    <artifactId>sample-mortgage</artifactId>
     <packaging>jar</packaging>
     <name>Tuscany Mortage Sample</name>
     <description>A sample Mortage application made of several SCA components wired
together.</description>
@@ -49,7 +49,7 @@
                 <configuration>
                     <archive>
                         <manifest>
-                            <mainClass>mortage.MortageClient</mainClass>
+                            <mainClass>mortgage.MortageClient</mainClass>
                         </manifest>
                     </archive>
                 </configuration>

Modified: incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/LoanApprovalImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/LoanApprovalImpl.java?view=diff&rev=450924&r1=450923&r2=450924
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/LoanApprovalImpl.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/LoanApprovalImpl.java
Thu Sep 28 10:04:46 2006
@@ -32,7 +32,7 @@
 
     private CreditCheck creditCheck;
     private RiskAssessment riskAssessment;
-    private MortageCalculator mortageCalculator;
+    private MortgageCalculator mortgageCalculator;
     private InterestRateQuote interestRateQuote;
 
     private int minimumCreditScore = 650;
@@ -53,8 +53,8 @@
     }
 
     @Reference
-    public void setMortageCalculator(MortageCalculator mortageCalculator) {
-        this.mortageCalculator = mortageCalculator;
+    public void setMortageCalculator(MortgageCalculator mortgageCalculator) {
+        this.mortgageCalculator = mortgageCalculator;
     }
 
     @Reference
@@ -71,7 +71,7 @@
             return false;
         
         float rate = interestRateQuote.getRate(customer.getState(), loanAmount, years);
-        double monthlyPayment = mortageCalculator.getMonthlyPayment(loanAmount, years, rate);
+        double monthlyPayment = mortgageCalculator.getMonthlyPayment(loanAmount, years, rate);
         double ratio = monthlyPayment/customer.getMonthlyIncome();
         return riskAssessment.assess(score, ratio);
     }

Copied: incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculator.java
(from r450922, incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculator.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculator.java?view=diff&rev=450924&p1=incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculator.java&r1=450922&p2=incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculator.java&r2=450924
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculator.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculator.java
Thu Sep 28 10:04:46 2006
@@ -24,6 +24,6 @@
  * The Calculator service interface.
  */
 @Remotable
-public interface MortageCalculator {
+public interface MortgageCalculator {
     public double getMonthlyPayment(double principal, int years, float interestRate);
 }

Copied: incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculatorImpl.java
(from r450922, incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculatorImpl.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculatorImpl.java?view=diff&rev=450924&p1=incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculatorImpl.java&r1=450922&p2=incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculatorImpl.java&r2=450924
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageCalculatorImpl.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageCalculatorImpl.java
Thu Sep 28 10:04:46 2006
@@ -24,7 +24,7 @@
  * An implementation of the Calculator service.
  */
 @Scope("MODULE")
-public class MortageCalculatorImpl implements MortageCalculator {
+public class MortgageCalculatorImpl implements MortgageCalculator {
 
     public double getMonthlyPayment(double principal, int years, float interestRate) {
         double monthlyRate = interestRate / 12.0 / 100.0;

Copied: incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageClient.java
(from r450922, incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageClient.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageClient.java?view=diff&rev=450924&p1=incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageClient.java&r1=450922&p2=incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageClient.java&r2=450924
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortageClient.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/java/mortgage/MortgageClient.java
Thu Sep 28 10:04:46 2006
@@ -24,7 +24,7 @@
 /**
  * This client program shows how to create an SCA runtime, start it, locate the Calculator
service and invoke it.
  */
-public class MortageClient {
+public class MortgageClient {
     public static void main(String[] args) throws Exception {
 
         CompositeContext context = CurrentCompositeContext.getContext();

Modified: incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/resources/META-INF/sca/default.scdl?view=diff&rev=450924&r1=450923&r2=450924
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/resources/META-INF/sca/default.scdl
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortage/src/main/resources/META-INF/sca/default.scdl
Thu Sep 28 10:04:46 2006
@@ -25,7 +25,7 @@
         <reference name="creditCheck">CreditCheckComponent</reference>
         <reference name="interestRateQuote">InterestRateQuoteComponent</reference>
         <reference name="riskAssessment">RiskAssessmentComponent</reference>
-        <reference name="mortageCalculator">MortageCalculatorComponent</reference>
+        <reference name="mortgageCalculator">MortageCalculatorComponent</reference>
     </component>
 
     <component name="CreditCheckComponent">
@@ -41,7 +41,7 @@
     </component>
 
     <component name="MortageCalculatorComponent">
-        <implementation.java class="mortgage.MortageCalculatorImpl" />
+        <implementation.java class="mortgage.MortgageCalculatorImpl" />
     </component>
 
 </composite>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message