task2/solution01/src/org/apidesign/apifest08/currency/CurrencyConvertorFactory.java
changeset 29 f6073056b9fe
parent 6 97662396c0fd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/task2/solution01/src/org/apidesign/apifest08/currency/CurrencyConvertorFactory.java	Wed Oct 01 10:43:05 2008 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +package org.apidesign.apifest08.currency;
     1.5 +
     1.6 +import java.util.Currency;
     1.7 +
     1.8 +/**
     1.9 + * @author Ladislav Vitasek
    1.10 + */
    1.11 +public interface CurrencyConvertorFactory {
    1.12 +
    1.13 +    /**
    1.14 +     * Instantiate a new instance convertor      
    1.15 +     * @param currency1 a code currency you want to convert between
    1.16 +     * @param currency2 a code currency you want to convert between
    1.17 +     * @param conversionProperties settings for conversion
    1.18 +     * @return converter for currency converting
    1.19 +     * @throws ConvertorNotAvailableException throws if there is no available convertor for selected currencies
    1.20 +     */
    1.21 +    Convertor createConvertor(Currency currency1, Currency currency2, ConversionProperties conversionProperties) throws ConvertorNotAvailableException;
    1.22 +
    1.23 +
    1.24 +
    1.25 +}