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
     1 package org.apidesign.apifest08.currency;
     2 
     3 import java.util.Currency;
     4 
     5 /**
     6  * @author Ladislav Vitasek
     7  */
     8 public interface CurrencyConvertorFactory {
     9 
    10     /**
    11      * Instantiate a new instance convertor      
    12      * @param currency1 a code currency you want to convert between
    13      * @param currency2 a code currency you want to convert between
    14      * @param conversionProperties settings for conversion
    15      * @return converter for currency converting
    16      * @throws ConvertorNotAvailableException throws if there is no available convertor for selected currencies
    17      */
    18     Convertor createConvertor(Currency currency1, Currency currency2, ConversionProperties conversionProperties) throws ConvertorNotAvailableException;
    19 
    20 
    21 
    22 }