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:
parent
403ff4abf7
commit
186bc100ec
3 changed files with 6 additions and 4 deletions
|
@ -48,6 +48,8 @@ public class CurrencyConverterImpl implements CurrencyConverter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public float convert(String fromCurrencyCode, String toCurrencyCode, float amount) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class CreditCardPaymentImpl implements CreditCardPayment {
|
||||||
|
|
||||||
public String authorize(CreditCardDetailsType creditCard, float amount) {
|
public String authorize(CreditCardDetailsType creditCard, float amount) {
|
||||||
if (creditCard != null) {
|
if (creditCard != null) {
|
||||||
System.out.println("Checking card: name = " + creditCard.getCardOwner().getName()
|
System.out.println("Credit card: name = " + creditCard.getCardOwner().getName()
|
||||||
+ " number = "
|
+ " number = "
|
||||||
+ creditCard.getCreditCardNumber()
|
+ creditCard.getCreditCardNumber()
|
||||||
+ " for amount "
|
+ " for amount "
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<!-- The service elment defines an SCA view of the OSGi service -->
|
<!-- The service elment defines an SCA view of the OSGi service -->
|
||||||
<service name="CreditCardPayment">
|
<service name="CreditCardPayment">
|
||||||
<!-- The interface will be mapped into the OSGi service class -->
|
<!-- 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 -->
|
<!-- The list of OSGi properties -->
|
||||||
<t:osgi.property name="prop1">1</t:osgi.property>
|
<t:osgi.property name="prop1">1</t:osgi.property>
|
||||||
<t:osgi.property name="prop2">ABC</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 -->
|
<!-- The reference elment defines an SCA proxy to a remote OSGi service -->
|
||||||
<reference name="currencyConverter">
|
<reference name="currencyConverter">
|
||||||
<interface.java interface="currency.CurrencyConverter"/>
|
<interface.java interface="scatours.currency.CurrencyConverter"/>
|
||||||
</reference>
|
</reference>
|
||||||
|
|
||||||
</componentType>
|
</componentType>
|
||||||
|
|
Loading…
Reference in a new issue