task1/solution01/src/org/apidesign/apifest08/currency/CurrencyConvertorFactory.java
author japod@localhost
Sun, 28 Sep 2008 14:12:38 +0200
changeset 6 97662396c0fd
permissions -rw-r--r--
Adding solutions received for task1
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
}