Fix the package names

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
rfeng 2009-05-26 18:02:57 +00:00
parent 403ff4abf7
commit 186bc100ec
3 changed files with 6 additions and 4 deletions

View file

@ -48,6 +48,8 @@ public class CurrencyConverterImpl implements CurrencyConverter {
}
public float convert(String fromCurrencyCode, String toCurrencyCode, float amount) {
return amount * getExchangeRate(fromCurrencyCode, toCurrencyCode);
float converted = amount * getExchangeRate(fromCurrencyCode, toCurrencyCode);
System.out.println(fromCurrencyCode + amount + "=" + toCurrencyCode + converted);
return converted;
}
}

View file

@ -36,7 +36,7 @@ public class CreditCardPaymentImpl implements CreditCardPayment {
public String authorize(CreditCardDetailsType creditCard, float amount) {
if (creditCard != null) {
System.out.println("Checking card: name = " + creditCard.getCardOwner().getName()
System.out.println("Credit card: name = " + creditCard.getCardOwner().getName()
+ " number = "
+ creditCard.getCreditCardNumber()
+ " for amount "

View file

@ -23,7 +23,7 @@
<!-- The service elment defines an SCA view of the OSGi service -->
<service name="CreditCardPayment">
<!-- The interface will be mapped into the OSGi service class -->
<interface.java interface="payment.creditcard.CreditCardPayment"/>
<interface.java interface="scatours.payment.creditcard.CreditCardPayment"/>
<!-- The list of OSGi properties -->
<t:osgi.property name="prop1">1</t:osgi.property>
<t:osgi.property name="prop2">ABC</t:osgi.property>
@ -31,7 +31,7 @@
<!-- The reference elment defines an SCA proxy to a remote OSGi service -->
<reference name="currencyConverter">
<interface.java interface="currency.CurrencyConverter"/>
<interface.java interface="scatours.currency.CurrencyConverter"/>
</reference>
</componentType>