task2/solution01/src/org/apidesign/apifest08/currency/CurrencyConvertorFactory.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 01 Oct 2008 10:43:05 +0200
changeset 29 f6073056b9fe
parent 6 task1/solution01/src/org/apidesign/apifest08/currency/CurrencyConvertorFactory.java@97662396c0fd
permissions -rw-r--r--
Getting ready for task2: copying all solutions to new locations
japod@6
     1
package org.apidesign.apifest08.currency;
japod@6
     2
japod@6
     3
import java.util.Currency;
japod@6
     4
japod@6
     5
/**
japod@6
     6
 * @author Ladislav Vitasek
japod@6
     7
 */
japod@6
     8
public interface CurrencyConvertorFactory {
japod@6
     9
japod@6
    10
    /**
japod@6
    11
     * Instantiate a new instance convertor      
japod@6
    12
     * @param currency1 a code currency you want to convert between
japod@6
    13
     * @param currency2 a code currency you want to convert between
japod@6
    14
     * @param conversionProperties settings for conversion
japod@6
    15
     * @return converter for currency converting
japod@6
    16
     * @throws ConvertorNotAvailableException throws if there is no available convertor for selected currencies
japod@6
    17
     */
japod@6
    18
    Convertor createConvertor(Currency currency1, Currency currency2, ConversionProperties conversionProperties) throws ConvertorNotAvailableException;
japod@6
    19
japod@6
    20
japod@6
    21
japod@6
    22
}