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
     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 }